X-Git-Url: http://git.mutantstargoat.com?p=gl4;a=blobdiff_plain;f=main.c;fp=main.c;h=67f7e8ce37cd507617b657cec74389fba6fa065e;hp=3f503bf33caf51a9b5e1cb37f943df5bb18c43d7;hb=6d6e752397e0f4e6a7b9841e41e4157b558769b8;hpb=a49ce4174d286b07ed74d66b3c0f77d489efd67d diff --git a/main.c b/main.c index 3f503bf..67f7e8c 100644 --- a/main.c +++ b/main.c @@ -103,8 +103,6 @@ int main(int argc, char **argv) int init(void) { - unsigned int uloc_matrix; - glDebugMessageCallback(gldebug, 0); glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); @@ -147,8 +145,6 @@ int init(void) glGenBuffers(1, &ubo_matrix); glBindBuffer(GL_UNIFORM_BUFFER, ubo_matrix); glBufferData(GL_UNIFORM_BUFFER, sizeof matrix_state, &matrix_state, GL_STREAM_DRAW); - uloc_matrix = glGetUniformBlockIndex(sdr, "matrix_state"); - glUniformBlockBinding(sdr, uloc_matrix, UBLOCK_MATRIX); return 0; } @@ -200,7 +196,7 @@ void display(void) draw_mesh(&torus); glBindSampler(0, 0); - //assert(glGetError() == GL_NO_ERROR); + assert(glGetError() == GL_NO_ERROR); glutSwapBuffers(); }