src/third_party/angle/src/tests/gl_tests/UniformBufferTest.cpp
// Test that ANGLE handles used but unbound UBO. Assumes we are running on ANGLE and produce
// optional but not mandatory errors.
Test that ANGLE handles used but unbound UBO. Assumes we are running on ANGLE and produce
optional but not mandatory errors.
Test that ANGLE handles used but unbound UBO . Assumes we are running on ANGLE and produce optional but not mandatory errors .
TEST_P(UniformBufferTest, ANGLEUnboundUniformBuffer)
{
    glUniformBlockBinding(mProgram, mUniformBufferIndex, 0);
    glBindBufferBase(GL_UNIFORM_BUFFER, 0, 0);
    EXPECT_GL_NO_ERROR();
    drawQuad(mProgram, essl3_shaders::PositionAttrib(), 0.5f);
    EXPECT_GL_ERROR(GL_INVALID_OPERATION);
}
TEST_P ( UniformBufferTest , ANGLEUnboundUniformBuffer ) { glUniformBlockBinding ( mProgram , mUniformBufferIndex , 0 ) ; glBindBufferBase ( GL_UNIFORM_BUFFER , 0 , 0 ) ; EXPECT_GL_NO_ERROR ( ) ; drawQuad ( mProgram , essl3_shaders :: PositionAttrib ( ) , 0.5f ) ; EXPECT_GL_ERROR ( GL_INVALID_OPERATION ) ; }
Test that ANGLE handles used but unbound UBO.
Test that ANGLE handles used but unbound UBO .