gl2shim: support low (<130) shaders

This commit is contained in:
mittorn 2023-10-06 01:17:50 +03:00 committed by Alibek Omarov
parent f85437dfc5
commit 6bad07b39d

View File

@ -9,7 +9,9 @@ R"(
#define in varying #define in varying
#define texture texture2D #define texture texture2D
#endif #endif
#if version >= 130
precision mediump float; precision mediump float;
#endif
#if ATTR_TEXCOORD0 #if ATTR_TEXCOORD0
layout(location = 5) uniform sampler2D uTex0; layout(location = 5) uniform sampler2D uTex0;
#endif #endif