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

Unified Diff: src/gpu/gl/win/SkNativeGLContext_win.cpp

Issue 129033003: Fix GL context creation on Windows when NV path rendering (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 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 | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/win/SkNativeGLContext_win.cpp
===================================================================
--- src/gpu/gl/win/SkNativeGLContext_win.cpp (revision 12953)
+++ src/gpu/gl/win/SkNativeGLContext_win.cpp (working copy)
@@ -86,7 +86,10 @@
return NULL;
}
- if (!(fGlRenderContext = SkCreateWGLContext(fDeviceContext, 0, true))) {
+ // We don't want the core profile when using NV path rendering (since
+ // NV path rendering relies on fixed function calls)
+ if (!(fGlRenderContext = SkCreateWGLContext(fDeviceContext, 0,
+ !GR_GL_USE_NV_PATH_RENDERING))) {
SkDebugf("Could not create rendering context.\n");
this->destroyGLContext();
return NULL;
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698