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

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 2101393003: ui/gl: On a core profile use sized types for R32F and RG32F (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_gl_api_implementation.cc
diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
index b3a516a40c6e816032202ce9b21c20dad83647fa..7d2210a548e1efe5a13cdb44f081976d9a11d71d 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -141,6 +141,14 @@ static inline GLenum GetTexInternalFormat(GLenum internal_format,
case GL_ALPHA:
gl_internal_format = GL_ALPHA32F_ARB;
break;
+ // RED and RG are reached here because on Desktop GL core profile,
+ // LUMINANCE/ALPHA formats are emulated through RED and RG in Chrome.
+ case GL_RED:
+ gl_internal_format = GL_R32F;
+ break;
+ case GL_RG:
+ gl_internal_format = GL_RG32F;
+ break;
default:
// We can't assert here because if the client context is ES3,
// all sized internal_format will reach here.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698