static void _do_handle_if_error( const oglplus::ErrorInfo& error_info, GLuint program, GLuint location ) { GLenum result = OGLPLUS_GLFUNC(GetError)(); if(OGLPLUS_IS_ERROR(result != GL_NO_ERROR)) { Error::PropertyMapInit props; Error::AddPropertyValue( props, "program", ObjectDescRegistry<ProgramOps>:: _get_desc(program) ); HandleShaderVariableError( result, location, "Error setting shading program variable value", error_info, std::move(props) ); } }
static void _do_handle_if_error( const oglplus::ErrorInfo& error_info, GLuint program, GLuint location ) { GLenum result = OGLPLUS_GLFUNC(GetError)(); if(OGLPLUS_IS_ERROR(result != GL_NO_ERROR)) { _handle_error(error_info, program, location, result); } }