You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module.printErr('WARNING: getObjectParameteriv received invalid id: '+id);
2359
2361
}
2360
2362
},
2363
+
glGetInfoLogARB: 'glGetInfoLog',
2361
2364
2362
2365
glBindProgram__sig: 'vii',
2363
2366
glBindProgram: function(type,id){
2364
2367
#if ASSERTIONS
2365
2368
assert(id==0);
2366
2369
#endif
2367
2370
},
2371
+
glBindProgramARB: 'glBindProgram',
2368
2372
2369
2373
glGetPointerv: function(name,p){
2370
2374
varattribute;
@@ -5031,39 +5035,11 @@ var LibraryGL = {
5031
5035
5032
5036
#else // LEGACY_GL_EMULATION
5033
5037
5034
-
// Warn if code tries to use various emulation stuff, when emulation is disabled
5035
-
// (do not warn if INCLUDE_FULL_LIBRARY is one, because then likely the gl code will
5036
-
// not be called anyhow, leave only the runtime aborts)
5037
-
glVertexPointer__deps: [function(){
5038
-
#if INCLUDE_FULL_LIBRARY==0
5039
-
warn('Legacy GL function (glVertexPointer) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.');
5040
-
#endif
5041
-
}],
5042
-
glVertexPointer: function(){throw'Legacy GL function (glVertexPointer) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5043
-
glGenVertexArrays__deps: [function(){
5044
-
#if INCLUDE_FULL_LIBRARY==0
5045
-
warn('Legacy GL function (glGenVertexArrays) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.');
5046
-
#endif
5047
-
}],
5048
-
glGenVertexArrays: function(){throw'Legacy GL function (glGenVertexArrays) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5049
-
glMatrixMode__deps: [function(){
5050
-
#if INCLUDE_FULL_LIBRARY==0
5051
-
warn('Legacy GL function (glMatrixMode) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.');
5052
-
#endif
5053
-
}],
5054
-
glMatrixMode: function(){throw'Legacy GL function (glMatrixMode) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5055
-
glBegin__deps: [function(){
5056
-
#if INCLUDE_FULL_LIBRARY==0
5057
-
warn('Legacy GL function (glBegin) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.');
5058
-
#endif
5059
-
}],
5060
-
glBegin: function(){throw'Legacy GL function (glBegin) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5061
-
glLoadIdentity__deps: [function(){
5062
-
#if INCLUDE_FULL_LIBRARY==0
5063
-
warn('Legacy GL function (glLoadIdentity) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.');
5064
-
#endif
5065
-
}],
5066
-
glLoadIdentity: function(){throw'Legacy GL function (glLoadIdentity) called. You need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5038
+
glVertexPointer: function(){throw'Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5039
+
glGenVertexArrays: function(){throw'Legacy GL function (glGenVertexArrays) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5040
+
glMatrixMode: function(){throw'Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5041
+
glBegin: function(){throw'Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5042
+
glLoadIdentity: function(){throw'Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.';},
5067
5043
5068
5044
#endif // LEGACY_GL_EMULATION
5069
5045
@@ -5374,52 +5350,17 @@ if (LEGACY_GL_EMULATION) {
if(!ret)Module.printErr('WARNING: getProcAddress failed for '+name);
5421
-
returnret;
5422
-
}
5353
+
// GL proc address retrieval - allow access through glX and emscripten_glX, to allow name collisions with user-implemented things having the same name (see gl.c)
0 commit comments