dmuratshin 10 years ago
parent
commit
c04685e96f
1 changed files with 5 additions and 9 deletions
  1. 5 9
      oxygine/src/core/gl/ShaderProgramGL.cpp

+ 5 - 9
oxygine/src/core/gl/ShaderProgramGL.cpp

@@ -74,8 +74,6 @@ namespace oxygine
 
 
 #ifdef __S3E__
 #ifdef __S3E__
         gles = true;
         gles = true;
-#elif   EMSCRIPTEN
-        gles = true;
 #elif OXYGINE_SDL
 #elif OXYGINE_SDL
         int profile = 0;
         int profile = 0;
         SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &profile);
         SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &profile);
@@ -84,13 +82,10 @@ namespace oxygine
 #else
 #else
 #endif
 #endif
 
 
-        if (gles)
-        {
-            *ptr = "precision float mediump;";
-        }
-        else
-        {
 
 
+#ifndef   EMSCRIPTEN
+        if (!gles)
+        {
             log::messageln("not gles version");
             log::messageln("not gles version");
 
 
             static const char nonGLES[] =
             static const char nonGLES[] =
@@ -99,8 +94,9 @@ namespace oxygine
                 "#define highp\n";
                 "#define highp\n";
 
 
             *ptr = nonGLES;
             *ptr = nonGLES;
+			ptr++;
         }
         }
-        ptr++;
+#endif
 
 
 
 
         if (prepend)
         if (prepend)