diff options
author | SmileTheory <SmileTheory@gmail.com> | 2013-11-03 19:34:22 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:35 +0100 |
commit | c845aa58e29b95bfcbe0ef2cf441068148328803 (patch) | |
tree | 6935664284d550596a112ae4e5b8684fa6762a37 /src/renderergl2/tr_image.c | |
parent | 2fee3c939af105c5a75696702f58ef267da7bf49 (diff) |
OpenGL2: Reduce glsl shader count by using a uniform to disable textures.
Diffstat (limited to 'src/renderergl2/tr_image.c')
-rw-r--r-- | src/renderergl2/tr_image.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/renderergl2/tr_image.c b/src/renderergl2/tr_image.c index f4a4d9fa..2467aac8 100644 --- a/src/renderergl2/tr_image.c +++ b/src/renderergl2/tr_image.c @@ -2876,9 +2876,6 @@ void R_CreateBuiltinImages( void ) { Com_Memset( data, 255, sizeof( data ) ); tr.whiteImage = R_CreateImage("*white", (byte *)data, 8, 8, IMGTYPE_COLORALPHA, IMGFLAG_NONE, 0); - Com_Memset( data, 128, sizeof( data ) ); - tr.greyImage = R_CreateImage("*grey", (byte *)data, 8, 8, IMGTYPE_COLORALPHA, IMGFLAG_NONE, GL_RGBA8); - if (r_dlightMode->integer >= 2) { for( x = 0; x < MAX_DLIGHTS; x++) |