|
Lines 1-25
Link Here
|
| 1 |
*** src/gui/sdlmain.cpp.orig Mon Mar 6 03:02:24 2017 |
|
|
| 2 |
--- src/gui/sdlmain.cpp Mon Mar 6 03:03:21 2017 |
| 3 |
*************** |
| 4 |
*** 1134,1143 **** |
| 5 |
#endif |
| 6 |
const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS); |
| 7 |
if(gl_ext && *gl_ext){ |
| 8 |
! sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") > 0); |
| 9 |
! sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") > 0); |
| 10 |
#if defined(NVIDIA_PixelDataRange) |
| 11 |
! sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") >0 ) && |
| 12 |
glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV; |
| 13 |
sdl.opengl.pixel_data_range = 0; |
| 14 |
#endif |
| 15 |
--- 1134,1143 ---- |
| 16 |
#endif |
| 17 |
const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS); |
| 18 |
if(gl_ext && *gl_ext){ |
| 19 |
! sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") != 0); |
| 20 |
! sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") != 0); |
| 21 |
#if defined(NVIDIA_PixelDataRange) |
| 22 |
! sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") != 0 ) && |
| 23 |
glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV; |
| 24 |
sdl.opengl.pixel_data_range = 0; |
| 25 |
#endif |