File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
* found in the LICENSE file.
6
6
*/
7
7
8
+ #if GL_ENABLE_GET_PROC_ADDRESS
9
+
8
10
// GL proc address retrieval
9
11
10
12
#include <string.h>
11
13
#include <stdlib.h>
12
14
#include <emscripten.h>
15
+ #include <emscripten/html5_webgl.h>
13
16
14
17
#define GL_GLEXT_PROTOTYPES
15
18
#include <GL/gl.h>
16
19
#include <GL/glext.h>
17
20
21
+ #ifdef LEGACY_GL_EMULATION
22
+
18
23
#include <webgl/webgl1_ext.h>
19
24
#include "webgl_internal_funcs.h"
20
25
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
-
30
26
#define RETURN_GL_EMU_FN (functionName ) if (!strcmp(name, #functionName)) return emscripten_##functionName;
31
27
32
28
void * emscripten_legacy_gl_emulation_GetProcAddress (const char * name ) {
@@ -244,6 +240,9 @@ for line in open('a').readlines():
244
240
}
245
241
#endif
246
242
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
+
247
246
// "Sloppy" desktop OpenGL/mobile GLES emulating
248
247
// behavior: different functionality is available under
249
248
// different vendor suffixes. In emscripten_GetProcAddress()
You can’t perform that action at this time.
0 commit comments