Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7953)

Unified Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc

Issue 2846007: Add makeContextCurrent() to all gl functions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
===================================================================
--- chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (revision 49833)
+++ chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (working copy)
@@ -392,6 +392,7 @@
bool WebGraphicsContext3DCommandBufferImpl::getActiveAttrib(
WebGLId program, unsigned long index, ActiveInfo& info) {
+ makeContextCurrent();
if (!program) {
synthesizeGLError(GL_INVALID_VALUE);
return false;
@@ -421,6 +422,7 @@
bool WebGraphicsContext3DCommandBufferImpl::getActiveUniform(
WebGLId program, unsigned long index, ActiveInfo& info) {
+ makeContextCurrent();
GLint max_name_length = -1;
glGetProgramiv(program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &max_name_length);
if (max_name_length < 0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698