summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-05 18:50:33 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-05 18:50:33 +0000
commit66301488ce3d0df85b1f7424c77a72d97a3bd29f (patch)
tree822fc928780b99d2d3da2c655070757f8bd81bc5 /app
parentcef05f213e7f6fecaabbdbc007a3c4ae95aee333 (diff)
downloadchromium_src-66301488ce3d0df85b1f7424c77a72d97a3bd29f.zip
chromium_src-66301488ce3d0df85b1f7424c77a72d97a3bd29f.tar.gz
chromium_src-66301488ce3d0df85b1f7424c77a72d97a3bd29f.tar.bz2
Check whether wglCreatePBufferARB is defined before calling it in PbufferGLContext::Initialize()
BUG=68590 Review URL: http://codereview.chromium.org/6062007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/gfx/gl/gl_context_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/gfx/gl/gl_context_win.cc b/app/gfx/gl/gl_context_win.cc
index 4e1e89e..3c724df 100644
--- a/app/gfx/gl/gl_context_win.cc
+++ b/app/gfx/gl/gl_context_win.cc
@@ -580,6 +580,11 @@ bool PbufferGLContext::Initialize(GLContext* shared_context) {
// Create a 1 x 1 pbuffer suitable for use with the device. This is just
// a stepping stone towards creating a frame buffer object. It doesn't
// matter what size it is.
+ if (!wglCreatePbufferARB) {
+ LOG(ERROR) << "wglCreatePbufferARB not available.";
+ Destroy();
+ return false;
+ }
const int kNoAttributes[] = { 0 };
pbuffer_ = wglCreatePbufferARB(display_device_context,
g_regular_pixel_format,