From c12541bb28a7ca1c933958b2d1e705f023ad29ed Mon Sep 17 00:00:00 2001 From: David Zhao Date: Tue, 23 Jul 2019 15:44:15 +0900 Subject: [PATCH] remove unnecessary pre-processor directives --- osu.Game.Resources/Shaders/sh_Flashlight.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/osu.Game.Resources/Shaders/sh_Flashlight.h b/osu.Game.Resources/Shaders/sh_Flashlight.h index 3a2a258..5f411a2 100644 --- a/osu.Game.Resources/Shaders/sh_Flashlight.h +++ b/osu.Game.Resources/Shaders/sh_Flashlight.h @@ -1,19 +1,9 @@ -#ifdef GL_ES - precision mediump float; - // Not all GPUs support high precision, so we should fall back to medium precision. - #ifndef GL_FRAGMENT_PRECISION_HIGH - #define highp - #endif -#else - // Since glsl 1.1 doesn't define precision qualifiers but GL_ES does, - // Define them as nothing to avoid compilation issues. +#ifndef GL_ES #define lowp + #define mediump #define highp #endif - - - varying highp vec2 v_Position; varying lowp vec4 v_Colour;