commit a5ebd82a081654390cdd53e695ff1832789784f0
parent 4389f5c2f8b23e5ae5580aec22a429836f6cd292
Author: Michael Savage <mikejsavage@gmail.com>
Date: Sat, 27 Oct 2018 17:31:51 +0300
glBindFragDataLocation!
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/renderer.cc b/renderer.cc
@@ -754,8 +754,8 @@ Shader renderer_new_shader( ShaderConfig config ) {
glBindAttribLocation( program, ATTR_COLOUR, "colour" );
glBindAttribLocation( program, ATTR_MODEL_TO_WORLD_COL0, "model_to_world" );
- // glBindAttribLocation( program, 1, "output_albedo" );
- // glBindAttribLocation( program, 0, "output_normal" );
+ glBindFragDataLocation( program, 0, "output_albedo" );
+ glBindFragDataLocation( program, 1, "output_normal" );
glLinkProgram( program );