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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1051503003: Add R_8 GPU memory buffers format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reveman@'s comments. Created 5 years, 9 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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 139dc6593545ae8d1b0744b14f176da0d9847978..5decca31e4dcaac719dc660e9fd76343bd9aec5b 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4829,6 +4829,8 @@ namespace {
bool ValidImageFormat(GLenum internalformat) {
switch (internalformat) {
+ case GL_LUMINANCE:
+ case GL_R8:
case GL_RGB:
case GL_RGBA:
return true;

Powered by Google App Engine
This is Rietveld 408576698