Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinshtein committed Feb 6, 2016
1 parent e6a92a6 commit c04685e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions oxygine/src/core/gl/ShaderProgramGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ namespace oxygine

#ifdef __S3E__
gles = true;
#elif EMSCRIPTEN
gles = true;
#elif OXYGINE_SDL
int profile = 0;
SDL_GL_GetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, &profile);
Expand All @@ -84,13 +82,10 @@ namespace oxygine
#else
#endif

if (gles)
{
*ptr = "precision float mediump;";
}
else
{

#ifndef EMSCRIPTEN
if (!gles)
{
log::messageln("not gles version");

static const char nonGLES[] =
Expand All @@ -99,8 +94,9 @@ namespace oxygine
"#define highp\n";

*ptr = nonGLES;
ptr++;
}
ptr++;
#endif


if (prepend)
Expand Down

0 comments on commit c04685e

Please sign in to comment.