summaryrefslogtreecommitdiff
path: root/src/opengl.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-28 10:40:40 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit35d91a5da3436d78dadcae9b088014b10c2de45d (patch)
treea33f3524e215caaa6bfb0d34e6dfbfe3bebe654b /src/opengl.c
parentab5897ec78e77e13d94fc3a74e56fc3a235e5f09 (diff)
Added AvP-Style attenuation code.
Diffstat (limited to 'src/opengl.c')
-rw-r--r--src/opengl.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/opengl.c b/src/opengl.c
index c24ff8d..97dc36f 100644
--- a/src/opengl.c
+++ b/src/opengl.c
@@ -437,6 +437,15 @@ GLuint CreateOGLTexture(D3DTexture *tex, unsigned char *buf)
return h;
}
+void ReleaseD3DTexture(void *tex)
+{
+ D3DTexture *TextureHandle = (D3DTexture *)tex;
+
+ glDeleteTextures(1, &(TextureHandle->id));
+
+ free(TextureHandle);
+}
+
/* ** */
void ThisFramesRenderingHasBegun()
@@ -473,7 +482,7 @@ void D3D_DecalSystem_Setup()
/* this does stop zfighting with bulletmarks on walls... */
glEnable(GL_POLYGON_OFFSET_FILL);
- glPolygonOffset(-10.0, -10.0);
+ glPolygonOffset(-8.0, -8.0);
}
void D3D_DecalSystem_End()