Fix[GLFW]: better isExtensionSupported signature
This commit is contained in:
1 parent
fcb9062b47
commit
9300cb15a0
1 file changed
+3
-1
@@ -6,6 +6,7 @@ package org.lwjgl.glfw;
|
||||
|
||||
import android.util.*;
|
||||
|
||||
import java.lang.annotation.Native;
|
||||
import java.lang.reflect.*;
|
||||
import java.nio.*;
|
||||
|
||||
@@ -1396,7 +1397,8 @@ return false;
|
||||
ypos[0] = mGLFWCursorY;
|
||||
}
|
||||
|
||||
public static boolean glfwExtensionSupported(String ext) {
|
||||
@NativeType("int")
|
||||
public static boolean glfwExtensionSupported(@NativeType("char const *") CharSequence ext) {
|
||||
//return Arrays.stream(glGetString(GL_EXTENSIONS).split(" ")).anyMatch(ext::equals);
|
||||
// Fast path, but will return true if one has the same prefix
|
||||
return glGetString(GL_EXTENSIONS).contains(ext);
|
||||
|
||||
Reference in new issue
Block a user