X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=vid_shared.c;h=85d3ec372091a986ddc3a655de0d39d54a441541;hb=9615163fe2a5dfa13ef832d0d0e10b9cda619840;hp=4236bb766f4fd08cc55b1091d8553a141840d675;hpb=c369a6525246f38a19a0d04ce47d352196dd37f0;p=xonotic%2Fdarkplaces.git diff --git a/vid_shared.c b/vid_shared.c index 4236bb76..85d3ec37 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -199,8 +199,6 @@ cvar_t v_glslgamma = {CVAR_SAVE, "v_glslgamma", "1", "enables use of GLSL to app cvar_t v_glslgamma_2d = {CVAR_SAVE, "v_glslgamma_2d", "0", "applies GLSL gamma to 2d pictures (HUD, fonts)"}; cvar_t v_psycho = {0, "v_psycho", "0", "easter egg"}; -extern cvar_t r_viewfbo; - // brand of graphics chip const char *gl_vendor; // graphics chip model and other information @@ -1413,7 +1411,7 @@ void VID_BuildGammaTables(unsigned short *ramps, int rampsize) { int i; for(i = 0; i < 3*rampsize; ++i) - ramps[i] = (int)floor(bound(0.0f, Image_sRGBFloatFromLinearFloat(ramps[i] / 65535.0), 1.0f) * 65535.0 + 0.5); + ramps[i] = (int)floor(bound(0.0f, Image_sRGBFloatFromLinearFloat(ramps[i] / 65535.0f), 1.0f) * 65535.0f + 0.5f); } // LordHavoc: this code came from Ben Winslow and Zinx Verituse, I have