Skip to content

Commit 377d28a

Browse files
GLSL + C preprocessor syntax fixes for MSVC builds (#61)
* GLSL + C preprocessor syntax fixes for MSVC builds * bump version * fix shader syntax
1 parent 9a893f2 commit 377d28a

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ if(ACF_USE_DRISHTI_UPLOAD)
6161
)
6262
endif()
6363
else()
64-
set(ACF_HUNTER_GATE_URL "https://github.com/ruslo/hunter/archive/v0.20.51.tar.gz")
65-
set(ACF_HUNTER_GATE_SHA1 "4919c28709340b4fb64a6c11d0bc203301edd685")
64+
set(ACF_HUNTER_GATE_URL "https://github.com/ruslo/hunter/archive/v0.20.74.tar.gz")
65+
set(ACF_HUNTER_GATE_SHA1 "88e3c806f0ff640c0e3cbc32b340ae2c370b31f5")
6666
if(HUNTER_ENABLED AND NOT ACF_IS_REPO_BUILD)
6767
# DEPENDENCY: if(HUNTER_ENABLE): we are being used as a dependency from
6868
# another project and we will use the config.cmake from the parent project.
@@ -94,7 +94,7 @@ endif()
9494
###################
9595

9696
# See https://github.com/hunter-packages/check_ci_tag when changing VERSION
97-
project(acf VERSION 0.1.4)
97+
project(acf VERSION 0.1.5)
9898

9999
set(ACF_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}")
100100

src/lib/acf/gpu/gradhist.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ BEGIN_OGLES_GPGPU
2323
// [0][1][2][3]
2424

2525
// clang-format off
26-
const char * GradHistProc::fshaderGradHistSrcN = OG_TO_STR
27-
(
26+
const char * GradHistProc::fshaderGradHistSrcN =
27+
2828
#if defined(OGLES_GPGPU_OPENGLES)
29-
precision highp float;
29+
OG_TO_STR(precision highp float;)
3030
#endif
31+
OG_TO_STR(
3132
varying vec2 vTexCoord;
3233
uniform sampler2D uInputTex;
3334
uniform float nOrientations;

src/lib/acf/gpu/swizzle2.cpp

+9-12
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ void MergeProc::useTexture(GLuint id, GLuint useTexUnit, GLenum target, int posi
2626
}
2727

2828
// clang-format off
29-
const char *MergeProc::fshaderMergeSrcABC1 = OG_TO_STR
30-
(
29+
const char *MergeProc::fshaderMergeSrcABC1 =
3130
#if defined(OGLES_GPGPU_OPENGLES)
32-
precision mediump float;
31+
OG_TO_STR(precision mediump float;)
3332
#endif
34-
33+
OG_TO_STR(
3534
varying vec2 textureCoordinate;
3635
uniform sampler2D inputImageTexture;
3736
uniform sampler2D inputImageTexture2;
@@ -46,12 +45,11 @@ const char *MergeProc::fshaderMergeSrcABC1 = OG_TO_STR
4645
// clang-format on
4746

4847
// clang-format off
49-
const char *MergeProc::fshaderMergeSrcAB12 = OG_TO_STR
50-
(
48+
const char *MergeProc::fshaderMergeSrcAB12 =
5149
#if defined(OGLES_GPGPU_OPENGLES)
52-
precision mediump float;
50+
OG_TO_STR(precision mediump float;)
5351
#endif
54-
52+
OG_TO_STR(
5553
varying vec2 textureCoordinate;
5654
uniform sampler2D inputImageTexture;
5755
uniform sampler2D inputImageTexture2;
@@ -66,12 +64,11 @@ const char *MergeProc::fshaderMergeSrcAB12 = OG_TO_STR
6664
// clang-format on
6765

6866
// clang-format off
69-
const char *MergeProc::fshaderMergeSrcAD12 = OG_TO_STR
70-
(
67+
const char *MergeProc::fshaderMergeSrcAD12 =
7168
#if defined(OGLES_GPGPU_OPENGLES)
72-
precision mediump float;
69+
OG_TO_STR(precision mediump float;)
7370
#endif
74-
71+
OG_TO_STR(
7572
varying vec2 textureCoordinate;
7673
uniform sampler2D inputImageTexture;
7774
uniform sampler2D inputImageTexture2;

0 commit comments

Comments
 (0)