From b109216caa01d3d94549fa2d840be2337b8da4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 24 May 2021 23:03:24 +0200 Subject: [PATCH] Shaders: what in the name of fuck. That feeling when you lose three hours debugging STRANGE shader compiler issues that happen only on ES, seeing stuff like "unexpected HASH_TOKEN at line 140" or "unterminated ifdef" on just any compiler you try, and then you spot THIS. FFS. Apparently this is how I was porting shaders in 2013, but not all, I was mostly sane, wrapping things in a nice ifdef EXPLICIT_UNIFORM_LOCATION, except this one case in b9a72bd3d1fd2bf763ca43a8cde7726583b671c2 where I temporarily went full retard. No idea why. --- src/Magnum/Shaders/MeshVisualizer.frag | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Magnum/Shaders/MeshVisualizer.frag b/src/Magnum/Shaders/MeshVisualizer.frag index c88460c0f..aa4889a92 100644 --- a/src/Magnum/Shaders/MeshVisualizer.frag +++ b/src/Magnum/Shaders/MeshVisualizer.frag @@ -32,10 +32,6 @@ #define const #endif -#ifndef EXPLICIT_UNIFORM_LOCATION -#define layout(arg) -#endif - #if defined(WIREFRAME_RENDERING) && defined(GL_ES) && __VERSION__ < 300 #extension GL_OES_standard_derivatives : enable #endif