Skip to content

Commit

Permalink
Fixed some poorly-named macros that were conflicting with other frame…
Browse files Browse the repository at this point in the history
…works.
  • Loading branch information
BradLarson committed Jun 14, 2013
1 parent ac88d0e commit 3f5c9ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/Source/GPUImageCrosshairGenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void main()
#else
NSString *const kGPUImageCrosshairFragmentShaderString = SHADER_STRING
(
escapedhash(version 120)\n
GPUImageEscapedHashIdentifier(version 120)\n

uniform vec3 crosshairColor;

Expand Down
6 changes: 3 additions & 3 deletions framework/Source/GPUImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#define STRINGIZE2(x) STRINGIZE(x)
#define SHADER_STRING(text) @ STRINGIZE2(text)

#define hash #
#define wrappedlabel(x) x
#define escapedhash(a) wrappedlabel(hash)a
#define GPUImageHashIdentifier #
#define GPUImageWrappedLabel(x) x
#define GPUImageEscapedHashIdentifier(a) GPUImageWrappedLabel(GPUImageHashIdentifier)a

extern NSString *const kGPUImageVertexShaderString;
extern NSString *const kGPUImagePassthroughFragmentShaderString;
Expand Down

0 comments on commit 3f5c9ce

Please sign in to comment.