Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2017 03:13:33 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r435580 - head/emulators/dosbox/files
Message-ID:  <201703070313.v273DXSP014908@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kan (src committer)
Date: Tue Mar  7 03:13:33 2017
New Revision: 435580
URL: https://svnweb.freebsd.org/changeset/ports/435580

Log:
  Fix build on FreeBSD-current with Clang 4.0.
  
  Approved by:	Tom Carrick (maintainer)

Added:
  head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp   (contents, props changed)

Added: head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp	Tue Mar  7 03:13:33 2017	(r435580)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703070313.v273DXSP014908>