Skip to content

Commit

Permalink
delete a couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnoise committed Oct 23, 2017
1 parent db2a6db commit 387a9be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions SyphonServerRendererCore.m
Expand Up @@ -145,7 +145,6 @@ - (void)destroySizedResources
glDeleteFramebuffers(1, &_surfaceFBO);
_surfaceFBO = 0;
}
// TODO: could destroy shader, vertices at this point too
[super destroySizedResources];
}

Expand Down Expand Up @@ -365,7 +364,7 @@ - (void)drawFrameTexture:(GLuint)texID textureTarget:(GLenum)target imageRegion:
GLint texVertLoc = _shader.textureVertexAttribLocation;
[_vertices setAttributePointer:vertLoc components:2 stride:4 offset:0];
[_vertices setAttributePointer:texVertLoc components:2 stride:4 offset:2];
[_shader endProgram]; // TODO: could avoid this end/use cycle
[_shader endProgram];
[_vertices unbind];
}

Expand Down Expand Up @@ -410,7 +409,6 @@ - (void)drawFrameTexture:(GLuint)texID textureTarget:(GLenum)target imageRegion:
// dont bother clearing. we dont have any alpha so we just write over the buffer contents. saves us a write.
glBindTexture(target, texID);

// TODO: if our own context, these could always be used/bound?
[_shader useProgram];
[_vertices bind];
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
Expand Down
1 change: 0 additions & 1 deletion SyphonServerShader.m
Expand Up @@ -29,7 +29,6 @@
#import "SyphonServerShader.h"
#import <OpenGL/gl3.h>

// TODO: one to one
static NSString * const vertSource = @"#version 150\n\
in vec2 vertCoord;\
in vec2 texCoord;\
Expand Down

0 comments on commit 387a9be

Please sign in to comment.