freebsd-ports/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
Alexander Kabaev f362ba18d3 Fix build on FreeBSD-current with Clang 4.0.
Approved by:	Tom Carrick (maintainer)
2017-03-07 03:13:33 +00:00

25 lines
1.1 KiB
C++

*** src/gui/sdlmain.cpp.orig Mon Mar 6 03:02:24 2017
--- src/gui/sdlmain.cpp Mon Mar 6 03:03:21 2017
***************
*** 1134,1143 ****
#endif
const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS);
if(gl_ext && *gl_ext){
! sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") > 0);
! sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") > 0);
#if defined(NVIDIA_PixelDataRange)
! sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") >0 ) &&
glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV;
sdl.opengl.pixel_data_range = 0;
#endif
--- 1134,1143 ----
#endif
const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS);
if(gl_ext && *gl_ext){
! sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") != 0);
! sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") != 0);
#if defined(NVIDIA_PixelDataRange)
! sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") != 0 ) &&
glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV;
sdl.opengl.pixel_data_range = 0;
#endif