浏览代码

Emscripten fix for error I'm not even getting!

Mark Sibly 7 年之前
父节点
当前提交
a8f70f0ba6
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      modules/opengl/native/bbopengl.c

+ 6 - 4
modules/opengl/native/bbopengl.c

@@ -5,6 +5,12 @@
 
 
 #include <stdio.h>
 #include <stdio.h>
 
 
+void *SDL_GL_GetProcAddress( const char *proc );
+
+int SDL_GL_ExtensionSupported( const char *ext );
+
+int SDL_GL_GetAttribute( int attr,int *value );
+
 #if __EMSCRIPTEN__
 #if __EMSCRIPTEN__
 
 
 void GLAPIENTRY glClearDepthf( GLclampf depth );
 void GLAPIENTRY glClearDepthf( GLclampf depth );
@@ -19,10 +25,6 @@ void GLAPIENTRY bbglClearDepth( GLclampd depth ){
 #define SDL_GL_CONTEXT_PROFILE_MASK		21
 #define SDL_GL_CONTEXT_PROFILE_MASK		21
 #define SDL_GL_CONTEXT_PROFILE_ES		0x0004 
 #define SDL_GL_CONTEXT_PROFILE_ES		0x0004 
 
 
-void *SDL_GL_GetProcAddress( const char *proc );
-int SDL_GL_ExtensionSupported( const char *ext );
-int SDL_GL_GetAttribute( int attr,int *value );
-
 void (GLAPIENTRY*bbglClearDepthf)( GLclampf depth );
 void (GLAPIENTRY*bbglClearDepthf)( GLclampf depth );
 
 
 void GLAPIENTRY bbglClearDepthd( GLclampd depth ){
 void GLAPIENTRY bbglClearDepthd( GLclampd depth ){