summaryrefslogtreecommitdiffstats
path: root/third_party/glew
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 19:48:58 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 19:48:58 +0000
commit8bb174c2d00c18fb682ab9bcbfa1f5f3f0ed2281 (patch)
treef0d2c4d61064c53b46ac82e69cf09842027dc5a9 /third_party/glew
parentf14a342e752e219704ad67f2960fb2da6a59d72f (diff)
downloadchromium_src-8bb174c2d00c18fb682ab9bcbfa1f5f3f0ed2281.zip
chromium_src-8bb174c2d00c18fb682ab9bcbfa1f5f3f0ed2281.tar.gz
chromium_src-8bb174c2d00c18fb682ab9bcbfa1f5f3f0ed2281.tar.bz2
Workaround for I915 graphics cards which have horrible GL shader support.
Summary: - GLEW doesn't load the GL shader functions, so we have to load them ourselves - Replace our varying vec2 with glTexCoord[0].st - Replace our uniform mat3 with manual matrix multiplication BUG=33329 TEST=try it out on anything with an I915 Review URL: http://codereview.chromium.org/1219006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/glew')
-rw-r--r--third_party/glew/include/GL/glew.h1
-rw-r--r--third_party/glew/src/glew.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/third_party/glew/include/GL/glew.h b/third_party/glew/include/GL/glew.h
index 2a63078..90438a7 100644
--- a/third_party/glew/include/GL/glew.h
+++ b/third_party/glew/include/GL/glew.h
@@ -12899,6 +12899,7 @@ GLEWAPI GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name);
#else /* GLEW_MX */
GLEWAPI GLenum glewInit ();
+GLEWAPI GLenum glewInitGL2Hack ();
GLEWAPI GLboolean glewIsSupported (const char* name);
#define glewIsExtensionSupported(x) glewIsSupported(x)
diff --git a/third_party/glew/src/glew.c b/third_party/glew/src/glew.c
index 9dae16f..908dfab 100644
--- a/third_party/glew/src/glew.c
+++ b/third_party/glew/src/glew.c
@@ -9891,6 +9891,12 @@ GLenum glewInit ()
#endif /* _WIN32 */
}
+GLenum glewInitGL2Hack ()
+{
+ _glewInit_GL_VERSION_2_0(GLEW_CONTEXT_ARG_VAR_INIT);
+ return GLEW_OK;
+}
+
#endif /* !GLEW_MX */
#ifdef GLEW_MX
GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name)