mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Removed GLES dependency on GL APIUtil.
This commit is contained in:
parent
a9a7067461
commit
30261d1f82
1 changed files with 2 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
|||
*/
|
||||
package org.lwjgl.opengl;
|
||||
|
||||
import org.lwjgl.BufferUtils;
|
||||
import org.lwjgl.LWJGLException;
|
||||
import org.lwjgl.LWJGLUtil;
|
||||
import org.lwjgl.PointerBuffer;
|
||||
|
|
@ -95,7 +96,7 @@ abstract class DrawableGLES implements DrawableLWJGL {
|
|||
EGL_NATIVE_RENDERABLE, EGL_FALSE,
|
||||
};
|
||||
|
||||
final EGLConfig[] configs = eglDisplay.chooseConfig(pf.getAttribBuffer(eglDisplay, eglSurfaceType, attribs), null, APIUtil.getBufferInt());
|
||||
final EGLConfig[] configs = eglDisplay.chooseConfig(pf.getAttribBuffer(eglDisplay, eglSurfaceType, attribs), null, BufferUtils.createIntBuffer(1));
|
||||
if ( configs.length == 0 )
|
||||
throw new LWJGLException("No EGLConfigs found for the specified PixelFormat.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue