From 458fcdc48095cd72640a45e42bf0eaa479f6801d Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Thu, 13 Mar 2003 19:54:44 +0000 Subject: [PATCH] fix: compile bug, since glx* didn't return value --- src/native/common/org_lwjgl_opengl_GL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/native/common/org_lwjgl_opengl_GL.cpp b/src/native/common/org_lwjgl_opengl_GL.cpp index 931feca7..b526d077 100644 --- a/src/native/common/org_lwjgl_opengl_GL.cpp +++ b/src/native/common/org_lwjgl_opengl_GL.cpp @@ -4082,6 +4082,8 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL_glXAllocateMemoryNV(JNIEnv * env #ifdef _X11 jint ret = (jint) glXAllocateMemoryNV((GLint) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); return ret; +#else + return -1; #endif }