diff --git a/specter/lib/TextView.cpp b/specter/lib/TextView.cpp index f748f5f52..118658e67 100644 --- a/specter/lib/TextView.cpp +++ b/specter/lib/TextView.cpp @@ -28,6 +28,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK " vtf.uv = uvIn[gl_VertexID];\n" " vtf.color = colorIn * mulColor;\n" " gl_Position = mv * mvMtx * vec4(posIn[gl_VertexID], 1.0);\n" +" gl_Position = FLIPFROMGL(gl_Position);\n" "}\n"; static const char* GLSLFSReg = diff --git a/specter/lib/View.cpp b/specter/lib/View.cpp index 20381e0de..0438dd638 100644 --- a/specter/lib/View.cpp +++ b/specter/lib/View.cpp @@ -21,6 +21,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK "{\n" " vtf.color = colorIn * mulColor;\n" " gl_Position = mv * vec4(posIn, 1.0);\n" +" gl_Position = FLIPFROMGL(gl_Position);\n" "}\n"; static const char* GLSLSolidFS = @@ -54,6 +55,7 @@ SPECTER_GLSL_VIEW_VERT_BLOCK " vtf.uv.xy = uvIn;\n" " vtf.color = mulColor;\n" " gl_Position = mv * vec4(posIn, 1.0);\n" +" gl_Position = FLIPFROMGL(gl_Position);\n" "}\n"; static const char* GLSLTexFS =