Skip to content

Commit

Permalink
枚举冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
BigShow1949 committed Sep 6, 2016
1 parent 9929c65 commit 1d3cb8d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ @implementation YFContextMenuTableView
- (instancetype)initWithTableViewDelegateDataSource:(id<UITableViewDelegate, UITableViewDataSource>)delegateDataSource {
self = [self init];
if (self) {
self.delegate = delegateDataSource;
// self.delegate = delegateDataSource;
self.dataSource = delegateDataSource;
}
return self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
UNIFORM_RGB,
NUM_UNIFORMS
};
GLint uniforms[NUM_UNIFORMS];
GLint uniforms_ripple[NUM_UNIFORMS];

enum
{
Expand Down Expand Up @@ -73,7 +73,7 @@ - (void)setupGL
[EAGLContext setCurrentContext:self.context];
[self loadShaders];
glUseProgram(_program);
glUniform1i(uniforms[UNIFORM_RGB], 0);
glUniform1i(uniforms_ripple[UNIFORM_RGB], 0);
}

- (void)setupBuffers
Expand Down Expand Up @@ -270,7 +270,7 @@ - (BOOL)loadShaders
}
return NO;
}
uniforms[UNIFORM_RGB] = glGetUniformLocation(_program, "SamplerRGB");
uniforms_ripple[UNIFORM_RGB] = glGetUniformLocation(_program, "SamplerRGB");
if (vertShader) {
glDetachShader(_program, vertShader);
glDeleteShader(vertShader);
Expand Down

0 comments on commit 1d3cb8d

Please sign in to comment.