Skip to content

Commit

Permalink
Sync negativeshaderapi with upstream CTS (#3672)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexaknyazev authored Jul 26, 2024
1 parent 9186c30 commit 5f1bfc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/tests/deqp/functional/gles3/es3fNegativeShaderApiTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,10 @@ goog.scope(function() {
this.expectError(gl.NO_ERROR);
gl.beginTransformFeedback(gl.POINTS);
this.expectError(gl.INVALID_OPERATION);
gl.endTransformFeedback();

bufferedLogToConsole('gl.INVALID_OPERATION is generated if any binding point used in transform feedback mode does not have a buffer object bound.');
/** @type{WebGLBuffer} */ var dummyBuf = gl.createBuffer()
gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, dummyBuf);
gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, null);
gl.beginTransformFeedback(gl.TRIANGLES);
this.expectError(gl.INVALID_OPERATION);
gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, buf);
Expand All @@ -978,12 +978,12 @@ goog.scope(function() {

bufferedLogToConsole('gl.INVALID_OPERATION is generated if no binding points would be used because the active program object has specified no varying variables to record.');
gl.transformFeedbackVaryings(program.getProgram(), [], gl.INTERLEAVED_ATTRIBS);
gl.linkProgram(program.getProgram());
this.expectError(gl.NO_ERROR);
gl.beginTransformFeedback(gl.TRIANGLES);
this.expectError(gl.INVALID_OPERATION);

gl.endTransformFeedback();
gl.deleteBuffer(buf);
gl.deleteBuffer(dummyBuf);
gl.deleteTransformFeedback(tfID[0]);
gl.deleteTransformFeedback(tfID[1]);
this.expectError(gl.NO_ERROR);
Expand Down

0 comments on commit 5f1bfc3

Please sign in to comment.