Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(94)

Issue 5309043: disable vertex attributes at resetContext time (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by bsalomon
Modified:
12 years, 11 months ago
Reviewers:
reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : add comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -9 lines) Patch
M src/gpu/GrGLProgram.h View 1 2 chunks +3 lines, -3 lines 1 comment Download
M src/gpu/GrGpuGLShaders.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrGpuGLShaders.cpp View 2 chunks +15 lines, -6 lines 2 comments Download

Messages

Total messages: 3
bsalomon
http://codereview.appspot.com/5309043/diff/2001/src/gpu/GrGLProgram.h File src/gpu/GrGLProgram.h (left): http://codereview.appspot.com/5309043/diff/2001/src/gpu/GrGLProgram.h#oldcode75 src/gpu/GrGLProgram.h:75: return 2 + GrDrawTarget::kMaxTexCoords; These weren't updated when earlier ...
12 years, 11 months ago (2011-10-19 13:15:35 UTC) #1
reed1
LGTM w/ suggestions http://codereview.appspot.com/5309043/diff/2001/src/gpu/GrGpuGLShaders.cpp File src/gpu/GrGpuGLShaders.cpp (right): http://codereview.appspot.com/5309043/diff/2001/src/gpu/GrGpuGLShaders.cpp#newcode371 src/gpu/GrGpuGLShaders.cpp:371: Should your explanation be incorporated into ...
12 years, 11 months ago (2011-10-19 13:20:38 UTC) #2
bsalomon
12 years, 11 months ago (2011-10-19 13:26:40 UTC) #3
Closed with r2494, this comment added:

// Third party GL code may have left vertex attributes enabled. Some GL
// implementations (osmesa) may read vetex attributes that are not required
// by the current shader. Therefore, we have to ensure that only the
// attributes we require for the current draw are enabled or we may cause an
// invalid read.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b