lullaby/systems/render/next/render_state_manager.cc
// Checks if the specified GL |parameter| matches the provided boolean |test|
// value. Queries the |parameter| using glGetBoolean.
Checks if the specified GL |parameter| matches the provided boolean |test|
value. Queries the |parameter| using glGetBoolean.
Checks if the specified GL |parameter| matches the provided boolean |test| value . Queries the |parameter| using glGetBoolean .
static bool CheckGlBool(GLenum parameter, bool test) {
  GLboolean value = GL_FALSE;
  GL_CALL(glGetBooleanv(parameter, &value));
  const bool bool_value = (value == GL_TRUE);
  if (bool_value == test) {
    return true;
  } else {
    LOG(ERROR) << "Unexpected GL state for parameter " << parameter;
    LOG(ERROR) << "Expected: " << test << ", Actual: " << bool_value;
    return false;
  }
}
static bool CheckGlBool ( GLenum parameter , bool test ) { GLboolean value = GL_FALSE ; GL_CALL ( glGetBooleanv ( parameter , & value ) ) ; const bool bool_value = ( value == GL_TRUE ) ; if ( bool_value == test ) { return true ; } else { LOG ( ERROR ) << " " << parameter ; LOG ( ERROR ) << " " << test << " " << bool_value ; return false ; } }
Checks if the specified GL |parameter| matches the provided boolean |test|
value.
Checks if the specified GL |parameter| matches the provided boolean |test| value .