aboutsummaryrefslogtreecommitdiff
path: root/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2017-03-07 03:13:33 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2017-03-07 03:13:33 +0000
commitf362ba18d3958892868bf6e020904cf7191f8b7f (patch)
tree963edbabad31caab8f2cdabc209115b3b1ebc9b0 /emulators/dosbox/files/patch-src_gui_sdlmain.cpp
parent9c0ed5cbb49dff067ad6879616cbd71e9622a2ff (diff)
Notes
Diffstat (limited to 'emulators/dosbox/files/patch-src_gui_sdlmain.cpp')
-rw-r--r--emulators/dosbox/files/patch-src_gui_sdlmain.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/dosbox/files/patch-src_gui_sdlmain.cpp b/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
new file mode 100644
index 000000000000..c70ff6adb774
--- /dev/null
+++ b/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
@@ -0,0 +1,25 @@
+*** 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