enable UBO extension for skeletal
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 1 Apr 2013 15:54:53 +0000 (15:54 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 1 Apr 2013 15:54:53 +0000 (15:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11931 d7cf8633-e32d-0410-b094-e92efae38249

shader_glsl.h

index 3e300d2..756118d 100644 (file)
 "#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",
 "# 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",