Skip to content

Commit

Permalink
Fixed error "gl_FragColor removed after version 420".
Browse files Browse the repository at this point in the history
  • Loading branch information
Aermoss committed Aug 25, 2023
1 parent fb8ab55 commit 7e2a636
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,11 @@ namespace rvr {
"#version 460 core\n"
"\n"
"uniform sampler2D diffuse;\n"
"out vec3 fragColor;\n"
"in vec2 fragTexCoords;\n"
"\n"
"void main() {\n"
" gl_FragColor = texture(diffuse, fragTexCoords);\n"
" fragColor = texture(diffuse, fragTexCoords);\n"
"}\n"
);

Expand Down

0 comments on commit 7e2a636

Please sign in to comment.