Unbreak after recent glew update.
This commit is contained in:
parent
001ba481af
commit
eb7bc5b6e9
15
games/warzone2100/patches/patch-lib_ivis_opengl_screen_cpp
Normal file
15
games/warzone2100/patches/patch-lib_ivis_opengl_screen_cpp
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-lib_ivis_opengl_screen_cpp,v 1.1 2015/05/07 22:43:15 ajacoutot Exp $
|
||||
|
||||
Fix with glew>=1.12.0
|
||||
|
||||
--- lib/ivis_opengl/screen.cpp.orig Thu Dec 12 03:20:34 2013
|
||||
+++ lib/ivis_opengl/screen.cpp Fri May 8 00:38:23 2015
|
||||
@@ -261,7 +261,7 @@ void screen_EnableMissingFunctions()
|
||||
__glewUseProgram = __glewUseProgramObjectARB;
|
||||
__glewGetShaderiv = __glewGetObjectParameterivARB;
|
||||
__glewLinkProgram = __glewLinkProgramARB;
|
||||
- __glewShaderSource = __glewShaderSourceARB;
|
||||
+ __glewShaderSource = reinterpret_cast<PFNGLSHADERSOURCEPROC>(__glewShaderSourceARB);
|
||||
__glewUniform1f = __glewUniform1fARB;
|
||||
__glewUniform1i = __glewUniform1iARB;
|
||||
__glewUniform4fv = __glewUniform4fvARB;
|
Loading…
Reference in New Issue
Block a user