summaryrefslogtreecommitdiff
path: root/src/engine/rendergl.cpp
diff options
context:
space:
mode:
authorxolatile2025-08-10 00:19:46 +0200
committerxolatile2025-08-10 00:19:46 +0200
commit757096e7df15c14b9b10352fa91663483f9e34f8 (patch)
treedcad789d0abd8be76463277dc01bf32c4e6a527b /src/engine/rendergl.cpp
parentb2c89d7060e99a36c8c7ac897b7386686c74deac (diff)
downloadxolatile-badassbug-757096e7df15c14b9b10352fa91663483f9e34f8.tar.xz
xolatile-badassbug-757096e7df15c14b9b10352fa91663483f9e34f8.tar.zst
all
Diffstat (limited to 'src/engine/rendergl.cpp')
-rw-r--r--src/engine/rendergl.cpp7
1 files changed, 1 insertions, 6 deletions
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;