Mark Sibly 8 gadi atpakaļ
vecāks
revīzija
cbd401f3c3

+ 3 - 3
modules/mojo/graphics/glexts/glexts.cpp

@@ -13,7 +13,7 @@ namespace bbGLexts{
 	bool GL_texture_half_float;
 	bool GL_depth_texture;
 
-	void(*glDrawBuffers)( int n,const GLint *bufs );
+	void(*glDrawBuffers)( int n,const GLenum *bufs );
 	
 	void init(){
 	
@@ -26,11 +26,11 @@ namespace bbGLexts{
 		
 		if( GL_draw_buffers=strstr( buf," GL_EXT_draw_buffers " ) ){
 			
-			glDrawBuffers=(void(*)(int,const GLint*)) eglGetProcAddress( "glDrawBuffersEXT" );
+			glDrawBuffers=(void(*)(int,const GLenum*)) eglGetProcAddress( "glDrawBuffersEXT" );
 			
 		}else if( GL_draw_buffers=strstr( buf," WEBGL_draw_buffers " ) ){
 		
-			glDrawBuffers=(void(*)(int,const GLint*)) eglGetProcAddress( "glDrawBuffersWEBGL" );
+			glDrawBuffers=(void(*)(int,const GLenum*)) eglGetProcAddress( "glDrawBuffersWEBGL" );
 		}
 		
 		GL_texture_float=strstr( buf,"_texture_float" );

+ 1 - 1
modules/mojo/graphics/glexts/glexts.h

@@ -9,7 +9,7 @@ namespace bbGLexts{
 	extern bool GL_texture_half_float;
 	extern bool GL_depth_texture;
 
-	extern void(*glDrawBuffers)( int n,const GLint *bufs );
+	extern void(*glDrawBuffers)( int n,const GLenum *bufs );
 
 	void init();
 }