summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_surface.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2013-09-16 00:54:26 -0700
committerTim Angus <tim@ngus.net>2014-06-17 17:43:34 +0100
commit75fe4796280cc95fe6b96cc9c9df5d74fc478ffa (patch)
treed031d5af29fb83215f6d140df94e5d4b48ce7309 /src/renderergl2/tr_surface.c
parent57ba5d4419af6c57be928ca57da090622411215f (diff)
#5979: Cubemap support for opengl2.
Diffstat (limited to 'src/renderergl2/tr_surface.c')
-rw-r--r--src/renderergl2/tr_surface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderergl2/tr_surface.c b/src/renderergl2/tr_surface.c
index ffdb2964..50711594 100644
--- a/src/renderergl2/tr_surface.c
+++ b/src/renderergl2/tr_surface.c
@@ -64,7 +64,7 @@ void RB_CheckOverflow( int verts, int indexes ) {
ri.Error(ERR_DROP, "RB_CheckOverflow: indices > MAX (%d > %d)", indexes, SHADER_MAX_INDEXES );
}
- RB_BeginSurface(tess.shader, tess.fogNum );
+ RB_BeginSurface(tess.shader, tess.fogNum, tess.cubemapIndex );
}
void RB_CheckVBOandIBO(VBO_t *vbo, IBO_t *ibo)
@@ -72,7 +72,7 @@ void RB_CheckVBOandIBO(VBO_t *vbo, IBO_t *ibo)
if (!(vbo == glState.currentVBO && ibo == glState.currentIBO) || tess.multiDrawPrimitives >= MAX_MULTIDRAW_PRIMITIVES)
{
RB_EndSurface();
- RB_BeginSurface(tess.shader, tess.fogNum);
+ RB_BeginSurface(tess.shader, tess.fogNum, tess.cubemapIndex);
R_BindVBO(vbo);
R_BindIBO(ibo);
@@ -1371,7 +1371,7 @@ static void RB_SurfaceGrid( srfGridMesh_t *srf ) {
// if we don't have enough space for at least one strip, flush the buffer
if ( vrows < 2 || irows < 1 ) {
RB_EndSurface();
- RB_BeginSurface(tess.shader, tess.fogNum );
+ RB_BeginSurface(tess.shader, tess.fogNum, tess.cubemapIndex );
} else {
break;
}
@@ -1594,7 +1594,7 @@ void RB_SurfaceVBOMDVMesh(srfVBOMDVMesh_t * surface)
//RB_CheckVBOandIBO(surface->vbo, surface->ibo);
RB_EndSurface();
- RB_BeginSurface(tess.shader, tess.fogNum);
+ RB_BeginSurface(tess.shader, tess.fogNum, tess.cubemapIndex);
R_BindVBO(surface->vbo);
R_BindIBO(surface->ibo);