Skip to content

Commit 29938b4

Browse files
committed
Merge branch 'develop' into metal-hacking
2 parents 52aab9a + cdff33f commit 29938b4

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

cocos2d-ios.xcodeproj/project.pbxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,6 @@
26002600
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
26012601
COMBINE_HIDPI_IMAGES = YES;
26022602
COPY_PHASE_STRIP = YES;
2603-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
26042603
ENABLE_NS_ASSERTIONS = NO;
26052604
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
26062605
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;

cocos2d-tests-android/Headless.xcodeproj/project.pbxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,6 @@
10651065
5B89B01819462F5900CD2A5E /* Release */ = {
10661066
isa = XCBuildConfiguration;
10671067
buildSettings = {
1068-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
10691068
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
10701069
MACOSX_DEPLOYMENT_TARGET = "$(inherited)";
10711070
OTHER_LDFLAGS = "";

cocos2d-tests-android/Headless/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
package="org.cocos2d.demo" >
44
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
55
<uses-sdk android:targetSdkVersion="14" android:minSdkVersion="9"></uses-sdk>
6+
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
67
<application
78
android:allowBackup="true"
89
android:label="Cocos2d"

cocos2d/CCEffectContrast.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ -(void)buildFragmentFunctions
5454
CCEffectFunctionInput *input = [[CCEffectFunctionInput alloc] initWithType:@"vec4" name:@"inputValue" initialSnippet:CCEffectDefaultInitialInputSnippet snippet:CCEffectDefaultInputSnippet];
5555

5656
NSString* effectBody = CC_GLSL(
57-
return vec4(((inputValue.rgb - vec3(0.5)) * vec3(u_contrast) + vec3(0.5)), inputValue.a);
57+
vec3 offset = vec3(0.5) * inputValue.a;
58+
return vec4(((inputValue.rgb - offset) * vec3(u_contrast) + offset), inputValue.a);
5859
);
5960

6061
CCEffectFunction* fragmentFunction = [[CCEffectFunction alloc] initWithName:@"contrastEffect" body:effectBody inputs:@[input] returnType:@"vec4"];

0 commit comments

Comments
 (0)