mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 23:00:45 -04:00
Fix[GLFW]: better isExtensionSupported signature
This commit is contained in:
parent
623f7dd332
commit
8b38456b77
@ -6,6 +6,7 @@ package org.lwjgl.glfw;
|
||||
|
||||
import android.util.*;
|
||||
|
||||
import java.lang.annotation.Native;
|
||||
import java.lang.reflect.*;
|
||||
import java.nio.*;
|
||||
|
||||
@ -1352,7 +1353,8 @@ public class GLFW
|
||||
nglfwGetCursorPosA(window, xpos, ypos);
|
||||
}
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user