summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_fence.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_fence.cc')
-rw-r--r--ui/gl/gl_fence.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index 9a3523e..183a12d 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -82,9 +82,9 @@ GLFence::~GLFence() {
// static
GLFence* GLFence::Create() {
- if (gfx::g_driver_gl.ext.b_GL_NV_fence) {
+ if (gfx::g_GL_NV_fence) {
return new GLFenceNVFence();
- } else if (gfx::g_driver_gl.ext.b_GL_ARB_sync) {
+ } else if (gfx::g_GL_ARB_sync) {
return new GLFenceARBSync();
} else {
return NULL;
@@ -93,8 +93,7 @@ GLFence* GLFence::Create() {
// static
bool GLFence::IsContextLost() {
- if (!gfx::g_driver_gl.ext.b_GL_ARB_robustness &&
- !gfx::g_driver_gl.ext.b_GL_EXT_robustness)
+ if (!gfx::g_GL_ARB_robustness && !gfx::g_GL_EXT_robustness)
return false;
if (!gfx::GLContext::GetCurrent() ||