diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-07-12 22:02:30 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-07-12 22:02:30 +0000 |
commit | 722aa347cc98d59c05a42a0af0c2cfab23e10d1c (patch) | |
tree | fa1300306ac43bfe7f903ac1dfbcbeee3236a702 | |
parent | 750d35f3842c8e3dbb60b4f18c3770fb2012a62b (diff) |
Clear surf->texnum[1] on BSP load, otherwise turning fragment programs off followed by a ‘map_restart’ caused liquid surfaces to look weird.
-rw-r--r-- | source/gl_surf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gl_surf.c b/source/gl_surf.c index d121847..449dbf0 100644 --- a/source/gl_surf.c +++ b/source/gl_surf.c @@ -220,6 +220,7 @@ static void GL_BuildSurfacePoly( bsp_t *bsp, mface_t *surf, vec_t *vbo ) { int bmins[2], bmaxs[2]; surf->texnum[0] = texinfo->image->texnum; + surf->texnum[1] = 0; // normalize texture coordinates scale[0] = 1.0f / texinfo->image->width; |