Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
index 8011ab19990ac46b82968f7c531f2bb11dd9e6eb..b35899cfbc2797dc67edbabbff8241e3d1e704a0 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h |
@@ -1360,7 +1360,7 @@ error::Error GLES2DecoderImpl::HandleLineWidth( |
uint32_t immediate_data_size, |
const gles2::cmds::LineWidth& c) { |
GLfloat width = static_cast<GLfloat>(c.width); |
- if (width <= 0.0f) { |
+ if (width <= 0.0f || base::IsNaN(width)) { |
LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "LineWidth", "width out of range"); |
return error::kNoError; |
} |