From 445a1ceeb50d479a4799df83e6d653e9a4470b95 Mon Sep 17 00:00:00 2001 From: eihrul Date: Mon, 1 Apr 2013 15:54:53 +0000 Subject: [PATCH] enable UBO extension for skeletal git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11931 d7cf8633-e32d-0410-b094-e92efae38249 --- shader_glsl.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shader_glsl.h b/shader_glsl.h index 3e300d22..756118d4 100644 --- a/shader_glsl.h +++ b/shader_glsl.h @@ -68,6 +68,11 @@ "#endif\n", "\n", "#ifdef VERTEX_SHADER\n", +"#ifdef USESKELETAL\n", +"#ifdef GL_ARB_uniform_buffer_object\n", +"#extension GL_ARB_uniform_buffer_object : enable\n", +"#endif\n", +"#endif\n", "dp_attribute vec4 Attrib_Position; // vertex\n", "dp_attribute vec4 Attrib_Color; // color\n", "dp_attribute vec4 Attrib_TexCoord0; // material texcoords\n", @@ -114,10 +119,6 @@ "# endif\n", "#endif\n", "\n", -"//#ifdef USESHADOWSAMPLER\n", -"//# extension GL_ARB_shadow : enable\n", -"//#endif\n", -"\n", "//#ifdef __GLSL_CG_DATA_TYPES\n", "//# define myhalf half\n", "//# define myhalf2 half2\n", -- 2.39.2