From 795f3148dc4da2846a026dd724e53cf408f0e5b6 Mon Sep 17 00:00:00 2001 From: Deve Date: Mon, 2 Nov 2015 18:20:07 +0100 Subject: [PATCH] Revert "Added default precision qualifier in fragment shaders" This reverts commit c23da9e855e56ac293cded6eb7f2b635880f42a9. --- src/graphics/shader.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/graphics/shader.cpp b/src/graphics/shader.cpp index 6132a49c8..4d67fd047 100644 --- a/src/graphics/shader.cpp +++ b/src/graphics/shader.cpp @@ -65,11 +65,6 @@ GLuint ShaderBase::loadShader(const std::string &file, unsigned type) std::ostringstream code; code << "#version " << CVS->getGLSLVersion()<<"\n"; - - //shader compilation fails with some drivers if there is no precision qualifier - if (type == GL_FRAGMENT_SHADER) - code << "precision mediump float;\n"; - if (CVS->isAMDVertexShaderLayerUsable()) code << "#extension GL_AMD_vertex_shader_layer : enable\n"; if (CVS->isAZDOEnabled())