Skip to content

Loading…

declare initGLFunctions with "define" (this fixes issue #448) #449

Merged
merged 1 commit into from

2 participants

@alfredr

This pull request closes issue #448.

@jckarter
Owner

Nice catch. Thanks!

@jckarter jckarter merged commit abcbba6 into jckarter:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 23, 2012
  1. @alfredr
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib-clay/opengl/nolookup/nolookup.clay
  2. +2 −1 lib-clay/opengl/opengl.clay
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");
Something went wrong with that request. Please try again.