Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #449 from alfredr/master

declare initGLFunctions with "define" (this fixes issue #448)
  • Loading branch information...
commit abcbba68b5e23c4570a53575a577b74da74d7a6a 2 parents 02de32f + 3e55da7
@jckarter authored
View
3  lib-clay/opengl/nolookup/nolookup.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);
View
3  lib-clay/opengl/opengl.clay
@@ -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.
Something went wrong with that request. Please try again.