Skip to content

Commit eec9159

Browse files
committed
Fix tr.numFBOs counter
1 parent 5ab62e7 commit eec9159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/tr_fbo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ FBO_t *R_CreateFBO( const char *name, int width, int height )
119119
Sys::Drop( "R_CreateFBO: MAX_FBOS hit" );
120120
}
121121

122-
fbo = tr.fbos[ tr.numFBOs ] = (FBO_t*) ri.Hunk_Alloc( sizeof( *fbo ), ha_pref::h_low );
122+
fbo = tr.fbos[ tr.numFBOs++ ] = (FBO_t*) ri.Hunk_Alloc( sizeof( *fbo ), ha_pref::h_low );
123123
Q_strncpyz( fbo->name, name, sizeof( fbo->name ) );
124124
fbo->width = width;
125125
fbo->height = height;

0 commit comments

Comments
 (0)