mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Moved the current BufferObjectInstance into ContextCapabilities to make it ThreadLocal
This commit is contained in:
parent
e5a0e67f6d
commit
412dfc7462
4 changed files with 12 additions and 30 deletions
|
|
@ -6,6 +6,8 @@ import org.lwjgl.LWJGLException;
|
|||
import java.util.Set;
|
||||
|
||||
public class ContextCapabilities {
|
||||
final BufferObjectTracker tracker;
|
||||
|
||||
public final boolean GL_ARB_color_buffer_float;
|
||||
public final boolean GL_ARB_depth_texture;
|
||||
public final boolean GL_ARB_draw_buffers;
|
||||
|
|
@ -1997,6 +1999,7 @@ public class ContextCapabilities {
|
|||
|
||||
ContextCapabilities() throws LWJGLException {
|
||||
Set supported_extensions = initAllStubs();
|
||||
tracker = new BufferObjectTracker();
|
||||
this.GL_ARB_color_buffer_float = supported_extensions.contains("GL_ARB_color_buffer_float");
|
||||
this.GL_ARB_depth_texture = supported_extensions.contains("GL_ARB_depth_texture");
|
||||
this.GL_ARB_draw_buffers = supported_extensions.contains("GL_ARB_draw_buffers");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue