From 35d91a5da3436d78dadcae9b088014b10c2de45d Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Tue, 28 Aug 2001 10:40:40 +0000 Subject: Added AvP-Style attenuation code. --- src/opengl.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/opengl.c') 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() -- cgit v1.3