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

Unified Diff: client/deps/glbench/src/utils.cc

Issue 1732030: Replaced funky state machines with classes. This is in preparation of doing the same to gl_Bench. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Got rid of static test list initialization, fixed USE_EGL. Created 10 years, 8 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 | « client/deps/glbench/src/utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/utils.cc
diff --git a/client/deps/glbench/src/utils.cc b/client/deps/glbench/src/utils.cc
index a214f5b6e1bbd1375ae6487c303f8979440c48d1..ea0d6e0f444307e89ce86493d0f37a59f496ac0d 100644
--- a/client/deps/glbench/src/utils.cc
+++ b/client/deps/glbench/src/utils.cc
@@ -51,7 +51,10 @@ static void print_info_log(int obj)
{
char info_log[4096];
int length;
- glGetInfoLogARB(obj, sizeof(info_log)-1, &length, info_log);
+ glGetError();
+ glGetShaderInfoLog(obj, sizeof(info_log)-1, &length, info_log);
+ if (glGetError() != 0)
+ glGetProgramInfoLog(obj, sizeof(info_log)-1, &length, info_log);
char *p = info_log;
while (p < info_log + length) {
char *newline = strchr(p, '\n');
« no previous file with comments | « client/deps/glbench/src/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698