Skip to content

Commit

Permalink
gl_FragColor is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ixchow committed Aug 25, 2019
1 parent 41a8d3c commit ba024e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ColorTextureProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ ColorTextureProgram::ColorTextureProgram() {
"uniform sampler2D TEX;\n"
"in vec4 color;\n"
"in vec2 texCoord;\n"
"out vec4 fragColor;\n"
"void main() {\n"
" gl_FragColor = texture(TEX, texCoord) * color;\n"
" fragColor = texture(TEX, texCoord) * color;\n"
"}\n"
);
//As you can see above, adjacent strings in C/C++ are concatenated.
Expand Down

0 comments on commit ba024e4

Please sign in to comment.