added a few missing lines

This commit is contained in:
Benjamin Petsch
2016-09-08 15:39:12 +02:00
parent 996564ed7d
commit 6adef607f2
2 changed files with 7 additions and 3 deletions

View File

@@ -184,8 +184,11 @@ GLuint WriteTexture(int textw, int texth){
// Always check that our framebuffer is ok // Always check that our framebuffer is ok
if(glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) if(glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
return false; return false;
// Render to our framebuffer
glBindFramebuffer(GL_FRAMEBUFFER, FramebufferName);
glViewport(0, 0, textw, texth);
} }

View File

@@ -4,7 +4,8 @@
in vec2 UV; in vec2 UV;
// Ouput data // Ouput data
out vec3 color; //out vec3 color;
layout(location = 0) out vec3 color;
// Values that stay constant for the whole mesh. // Values that stay constant for the whole mesh.
uniform sampler2D myTextureSampler; uniform sampler2D myTextureSampler;