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

Issue 5991012: Make glVertexAttribPointer return INVALID_OPERATION for offsets... (Closed)

Created:
9 years, 11 months ago by greggman
Modified:
9 years, 7 months ago
Reviewers:
Zhenyao Mo
CC:
chromium-reviews, apatrick_chromium, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make glVertexAttribPointer return INVALID_OPERATION for offsets and strides that do not match type. TEST=unit tests BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70800

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -6 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 3 chunks +139 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
greggman
9 years, 11 months ago (2011-01-05 23:44:12 UTC) #1
Zhenyao Mo
http://codereview.chromium.org/5991012/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): http://codereview.chromium.org/5991012/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode4718 gpu/command_buffer/service/gles2_cmd_decoder.cc:4718: SetGLError(GL_INVALID_OPERATION, I think here we should check if (stride ...
9 years, 11 months ago (2011-01-05 23:54:11 UTC) #2
Zhenyao Mo
9 years, 11 months ago (2011-01-06 01:31:19 UTC) #3
Just checked the spec again.  Your implementation is correct.  Sorry about the
false alarm.

LGTM.

On 2011/01/05 23:54:11, Zhenyao Mo wrote:
>
http://codereview.chromium.org/5991012/diff/1/gpu/command_buffer/service/gles...
> File gpu/command_buffer/service/gles2_cmd_decoder.cc (right):
> 
>
http://codereview.chromium.org/5991012/diff/1/gpu/command_buffer/service/gles...
> gpu/command_buffer/service/gles2_cmd_decoder.cc:4718:
> SetGLError(GL_INVALID_OPERATION,
> I think here we should check if (stride > 0 && stride < component_size * size)
> 
> Same for the unittest.

Powered by Google App Engine
This is Rietveld 408576698