Changeset 650


Ignore:
Timestamp:
Feb 16, 2011, 1:18:19 AM (11 years ago)
Author:
sam
Message:

Fix shader crap syntax, caused by space-like UTF-8 characters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scene.cpp

    r649 r650  
    7474#if SHADER_CRAP
    7575static char const *vertexshader =
    76     "attribute vec4 position;\n"
    77     "uniform mat4 mvp;\n"
     76    "attribute vec4 position;\n"
     77    "uniform mat4 mvp;\n"
    7878    "\n"
    79     "void main()\n"
     79    "void main()\n"
    8080    "{\n"
    81     "    gl_Position = mvp * position;\n"
     81    "    gl_Position = mvp * position;\n"
    8282    "}\n";
    8383
    8484static char const *fragmentshader =
    85     "uniform lowp vec4 color;\n"
     85    "uniform /*lowp*/ vec4 color;\n"
    8686    "\n"
    87     "void main()\n"
     87    "void main()\n"
    8888    "{\n"
    89     "    gl_FragColor = color;\n"
     89    "    gl_FragColor = color;\n"
    9090    "}\n";
    9191#endif
     
    128128    glBindAttribLocation(data->prog, ATTRIB_POSITION, "position");
    129129    glLinkProgram(data->prog);
     130    glValidateProgram(data->prog);
    130131
    131132    data->uni_mvp = glGetUniformLocation(data->prog, "mvp");
Note: See TracChangeset for help on using the changeset viewer.