Moved the current BufferObjectInstance into ContextCapabilities to make it ThreadLocal

This commit is contained in:
Elias Naur 2005-02-17 12:23:38 +00:00
parent e5a0e67f6d
commit 412dfc7462
4 changed files with 12 additions and 30 deletions

View file

@ -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");