File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 55 * found in the LICENSE file.
66 */
77
8+ #if GL_ENABLE_GET_PROC_ADDRESS
9+
810// GL proc address retrieval
911
1012#include <string.h>
1113#include <stdlib.h>
1214#include <emscripten.h>
15+ #include <emscripten/html5_webgl.h>
1316
1417#define GL_GLEXT_PROTOTYPES
1518#include <GL/gl.h>
1619#include <GL/glext.h>
1720
21+ #ifdef LEGACY_GL_EMULATION
22+
1823#include <webgl/webgl1_ext.h>
1924#include "webgl_internal_funcs.h"
2025
21- #if GL_ENABLE_GET_PROC_ADDRESS
22-
23- extern void * emscripten_webgl1_get_proc_address (const char * name );
24- extern void * _webgl1_match_ext_proc_address_without_suffix (const char * name );
25- extern void * emscripten_webgl2_get_proc_address (const char * name );
26- extern void * _webgl2_match_ext_proc_address_without_suffix (const char * name );
27-
28- #ifdef LEGACY_GL_EMULATION
29-
3026#define RETURN_GL_EMU_FN (functionName ) if (!strcmp(name, #functionName)) return emscripten_##functionName;
3127
3228void * emscripten_legacy_gl_emulation_GetProcAddress (const char * name ) {
@@ -244,6 +240,9 @@ for line in open('a').readlines():
244240}
245241#endif
246242
243+ void * _webgl1_match_ext_proc_address_without_suffix (const char * name );
244+ void * _webgl2_match_ext_proc_address_without_suffix (const char * name );
245+
247246// "Sloppy" desktop OpenGL/mobile GLES emulating
248247// behavior: different functionality is available under
249248// different vendor suffixes. In emscripten_GetProcAddress()
You can’t perform that action at this time.
0 commit comments