Chromium Code Reviews| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| index 0870c36b889bcd266ba85c623819e3152fa514b6..c86275ab757dc56b05c6b8c76b70d47e0aaadf1e 100644 |
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| @@ -6427,12 +6427,18 @@ bool GLES2DecoderImpl::PrepareTexturesForRender() { |
| glBindTexture( |
| textarget, |
| texture_manager()->black_texture_id(uniform_info->type)); |
| - LOCAL_RENDER_WARNING( |
| - std::string("texture bound to texture unit ") + |
| - base::IntToString(texture_unit_index) + |
| - " is not renderable. It maybe non-power-of-2 and have" |
| - " incompatible texture filtering or is not" |
| - " 'texture complete'"); |
| + if (!texture_ref) { |
| + LOCAL_RENDER_WARNING( |
| + std::string("texture bound to texture unit ") + |
|
no sievers
2015/01/13 20:21:01
Isn't it rather that there is no texture bound to
dshwang
2015/01/14 14:41:55
Done.
|
| + base::IntToString(texture_unit_index) + |
| + " is not renderable due to not 'texture complete'"); |
| + } else { |
| + LOCAL_RENDER_WARNING( |
| + std::string("texture bound to texture unit ") + |
| + base::IntToString(texture_unit_index) + |
| + " is not renderable. It maybe non-power-of-2 and have" |
| + " incompatible texture filtering"); |
|
no sievers
2015/01/13 20:21:01
and if it's not renderable it could also be becaus
dshwang
2015/01/14 14:41:55
Yes, I think that "not renderable" is same meaning
|
| + } |
| continue; |
| } |