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

Unified Diff: gpu/command_buffer/service/texture_manager.cc

Issue 1881883002: SRGB_EXT is a valid format of texture in WebGL1.0 and ES2.0 contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SRGB_EXT is valid texture internal format, but not a color-renderable format Created 4 years, 8 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/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index 8297c6d04556fbdee6806487b6a81552810637e3..12d5a57c13f06c0d8efadb6d793261a52cfa3919 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -1558,7 +1558,8 @@ bool Texture::CanRenderTo(const FeatureInfo* feature_info, GLint level) const {
IsValid(internal_format) &&
internal_format != GL_ALPHA &&
internal_format != GL_LUMINANCE &&
- internal_format != GL_LUMINANCE_ALPHA) ||
+ internal_format != GL_LUMINANCE_ALPHA &&
+ internal_format != GL_SRGB_EXT) ||
feature_info->validators()->
texture_sized_color_renderable_internal_format.IsValid(
internal_format));
« gpu/command_buffer/service/feature_info.cc ('K') | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698