From 754c96a540c1f84706a169aac22f5c6793730dd7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 27 Jul 2014 16:09:47 +0200 Subject: [PATCH] - added default precision settings to shader include because some old ATI drivers complain if they aren't there - even though the spec doesn't require them... --- wadsrc/static/shaders/glsl/shaderdefs.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wadsrc/static/shaders/glsl/shaderdefs.i b/wadsrc/static/shaders/glsl/shaderdefs.i index 2870cf975..242b7244b 100644 --- a/wadsrc/static/shaders/glsl/shaderdefs.i +++ b/wadsrc/static/shaders/glsl/shaderdefs.i @@ -1,5 +1,9 @@ // This file contains common data definitions for both vertex and fragment shader +// these settings are actually pointless but there seem to be some old ATI drivers that fail to compile the shader without setting the precision here. +precision highp int; +precision highp float; + uniform vec4 uCameraPos; uniform int uTextureMode; uniform float uClipHeightTop, uClipHeightBottom;