Permalink
Browse files

Merge pull request #449 from alfredr/master

declare initGLFunctions with "define" (this fixes issue #448)
  • Loading branch information...
2 parents 02de32f + 3e55da7 commit abcbba68b5e23c4570a53575a577b74da74d7a6a @jckarter committed Nov 23, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib-clay/opengl/nolookup/nolookup.clay
  2. +2 −1 lib-clay/opengl/opengl.clay
@@ -4,8 +4,9 @@ import opengl.platform.*;
import opengl.nolookup as self;
import data.sequences.*;
-initGLFunctions(x) { }
+define initGLFunctions;
overload initGLFunctions() { }
+overload initGLFunctions(x) { }
external (GLAPI) glAccum(_op: GLenum, _value: GLfloat);
external (GLAPI) glActiveTexture(_texture: GLenum);
@@ -772,7 +772,8 @@ overload destroy(gl: GLFunctions) { }
private var globalGL = GLFunctions();
-initGLFunctions(gl: GLFunctions) {
+define initGLFunctions;
+overload initGLFunctions(gl: GLFunctions) {
gl.Accum = findGLFunction([GLenum, GLfloat], [], "glAccum");
gl.ActiveTexture = findGLFunction((GLenum), [], "glActiveTexture", "glActiveTextureARB");
gl.AlphaFunc = findGLFunction([GLenum, GLclampf], [], "glAlphaFunc");

0 comments on commit abcbba6

Please sign in to comment.