From 757096e7df15c14b9b10352fa91663483f9e34f8 Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 10 Aug 2025 00:19:46 +0200 Subject: all --- src/engine/rendergl.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/engine/rendergl.cpp') diff --git a/src/engine/rendergl.cpp b/src/engine/rendergl.cpp index 4243ac7..e448415 100644 --- a/src/engine/rendergl.cpp +++ b/src/engine/rendergl.cpp @@ -397,9 +397,6 @@ void gl_checkextensions() { glIsVertexArray_ = (PFNGLISVERTEXARRAYPROC) getprocaddress("glIsVertexArrayAPPLE"); hasVAO = true; } - if(glversion >= 330 || hasext("GL_ARB_texture_swizzle") || hasext("GL_EXT_texture_swizzle")) { - hasTSW = true; - } if(hasext("GL_EXT_texture_compression_s3tc")) { hasS3TC = true; if(!mesa) usetexcompress = 2; @@ -425,8 +422,7 @@ void gl_checkextensions() { } if(glversion >= 300 || hasext("GL_EXT_gpu_shader4")) { // on DX10 or above class cards (i.e. GF8 or RadeonHD) enable expensive features - extern int maxdynlights, texcompress; - maxdynlights = MAXDYNLIGHTS; + extern int texcompress; texcompress = max(texcompress, 1024 + 1); } } @@ -957,7 +953,6 @@ int xtraverts, xtravertsva; void gl_drawframe() { if(deferdrawtextures) drawtextures(); - updatedynlights(); int w = screenw, h = screenh; aspect = forceaspect ? forceaspect : w/float(h); fovy = 2*atan2(tan(curfov/2*RAD), aspect)/RAD; -- cgit v1.2.3