Fixed SDL_OPENGLBLIT with OpenGL API newer than 1.2
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40283
This commit is contained in:
parent
ea01f53e50
commit
b6348eb051
1 changed files with 3 additions and 5 deletions
|
@ -728,11 +728,9 @@ do { \
|
||||||
support the GL_UNSIGNED_SHORT_5_6_5 texture format.
|
support the GL_UNSIGNED_SHORT_5_6_5 texture format.
|
||||||
*/
|
*/
|
||||||
if ( (bpp == 16) &&
|
if ( (bpp == 16) &&
|
||||||
(strstr((const char *)video->glGetString(GL_EXTENSIONS),
|
(strstr((const char *)video->glGetString(GL_EXTENSIONS), "GL_EXT_packed_pixels") ||
|
||||||
"GL_EXT_packed_pixels") ||
|
(atof((const char *)video->glGetString(GL_VERSION)) >= 1.2f))
|
||||||
(strncmp((const char *)video->glGetString(GL_VERSION),
|
) {
|
||||||
"1.2", 3) == 0)) )
|
|
||||||
{
|
|
||||||
video->is_32bit = 0;
|
video->is_32bit = 0;
|
||||||
SDL_VideoSurface = SDL_CreateRGBSurface(
|
SDL_VideoSurface = SDL_CreateRGBSurface(
|
||||||
flags,
|
flags,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue