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

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: Correct texture format parameter 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 b904fc9558b9d933df5eb00f4599ad0cb4937ba6..bafb0df092a974a08329c4c4e9265b76b782a7c4 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -1592,7 +1592,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));

Powered by Google App Engine
This is Rietveld 408576698