Commit 5e9aca2a authored by jnd@chromium.org's avatar jnd@chromium.org

Don't map internalFormat in renderbufferStorage() in embedded envrionment.

BUG=none
TEST=Run webkit layout test fast/canvas/webgl/framebuffer_test.html in embedded environment. 

Review URL: http://codereview.chromium.org/6365006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72299 0039d316-1c4b-4281-b951-d872f2087c98
parent 0e58634e
......@@ -1310,6 +1310,7 @@ void WebGraphicsContext3DInProcessImpl::renderbufferStorage(
unsigned long width,
unsigned long height) {
makeContextCurrent();
if (!is_gles2_) {
switch (internalformat) {
case GL_DEPTH_STENCIL:
internalformat = GL_DEPTH24_STENCIL8_EXT;
......@@ -1325,6 +1326,7 @@ void WebGraphicsContext3DInProcessImpl::renderbufferStorage(
internalformat = GL_RGB;
break;
}
}
glRenderbufferStorageEXT(target, internalformat, width, height);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment