aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index d1c21fa1..45fc8585 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -63,8 +63,15 @@ var LibraryGL = {
glBindTexture: function(target, texture) {
Module.ctxGL.bindTexture(target, GL.textures[texture]);
},
+
};
+// Ignored stubs for fixed-function pipeline. We will need to emulate this
+'begin end matrixMode loadIdentity ortho color3f texCoord2f vertex2f blendFunc pushMatrix popMatrix translatef scalef'.split(' ').forEach(function(name_) {
+ var cName = 'gl' + name_[0].toUpperCase() + name_.substr(1);
+ LibraryGL[cName] = function(){};
+});
+
// Simple pass-through functions
[[0, 'shadeModel fogi fogfv'],
[1, 'clearDepth depthFunc enable disable frontFace cullFace'],