diff --git a/gfx/thebes/GLContext.cpp b/gfx/thebes/GLContext.cpp index 69884136285..43c538145dd 100644 --- a/gfx/thebes/GLContext.cpp +++ b/gfx/thebes/GLContext.cpp @@ -352,7 +352,11 @@ GLContext::InitExtensions() const GLubyte *extensions = fGetString(LOCAL_GL_EXTENSIONS); char *exts = strdup((char *)extensions); +#ifdef DEBUG static bool once = false; +#else + const bool once = true; +#endif if (!once) { printf_stderr("GL extensions: %s\n", exts); @@ -382,7 +386,9 @@ GLContext::InitExtensions() free(exts); +#ifdef DEBUG once = true; +#endif } PRBool