From 0fff2c80fd9f74ed62f61e2fa974a18685ebf37e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 14 Jun 2008 22:16:16 -0400 Subject: [PATCH] Removed some debug code from the arb1 profile's OpenGL glue. --HG-- branch : trunk --- mojoshader_opengl.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/mojoshader_opengl.c b/mojoshader_opengl.c index d5d54e71..79b3700d 100644 --- a/mojoshader_opengl.c +++ b/mojoshader_opengl.c @@ -667,23 +667,8 @@ static int impl_ARB1_CompileShader(const MOJOSHADER_parseData *pd, GLuint *s) ctx->glGetError(); // flush any existing error state. ctx->glBindProgramARB(shader_type, shader); - -#if 0 - if (shader_type == GL_FRAGMENT_PROGRAM_ARB) { - const char *prog = - "!!ARBfp1.0\n" - "OUTPUT oC0 = result.color;\n" - "MOV oC0, { 1.0, 0.0, 0.0, 1.0 };\n" - "END\n"; - ctx->glProgramStringARB(shader_type, GL_PROGRAM_FORMAT_ASCII_ARB, - strlen(prog), prog); - } else -#endif - - { - ctx->glProgramStringARB(shader_type, GL_PROGRAM_FORMAT_ASCII_ARB, + ctx->glProgramStringARB(shader_type, GL_PROGRAM_FORMAT_ASCII_ARB, shaderlen, pd->output); - } if (ctx->glGetError() == GL_INVALID_OPERATION) {