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

Unified Diff: gpu/command_buffer/service/program_manager.cc

Issue 6242006: Fix for gl programs. An unsuccessful link should report... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « gpu/command_buffer/service/program_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/program_manager.cc
===================================================================
--- gpu/command_buffer/service/program_manager.cc (revision 71466)
+++ gpu/command_buffer/service/program_manager.cc (working copy)
@@ -48,11 +48,13 @@
max_attrib_name_length_(0),
max_uniform_name_length_(0),
service_id_(service_id),
- valid_(false) {
+ valid_(false),
+ link_status_(false) {
}
void ProgramManager::ProgramInfo::Reset() {
valid_ = false;
+ link_status_ = false;
max_uniform_name_length_ = 0;
max_attrib_name_length_ = 0;
attrib_infos_.clear();
@@ -76,6 +78,7 @@
void ProgramManager::ProgramInfo::Update() {
Reset();
+ link_status_ = true;
GLint num_attribs = 0;
GLint max_len = 0;
GLint max_location = -1;
@@ -337,7 +340,7 @@
*params = max_uniform_name_length_ + 1;
break;
case GL_LINK_STATUS:
- *params = valid_;
+ *params = link_status_;
break;
case GL_INFO_LOG_LENGTH:
// Notice +1 to accomodate NULL terminator.
« no previous file with comments | « gpu/command_buffer/service/program_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698