2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-06 08:05:04 +01:00

ref: gl: add fullbright textures to the list with VBO renderer

This commit is contained in:
Alibek Omarov 2024-11-02 02:18:43 +03:00
parent 09210e4316
commit c3de4a5c3b

View File

@ -3194,9 +3194,15 @@ qboolean R_AddSurfToVBO( msurface_t *surf, qboolean buildlightmap )
buildlightmap &= !r_fullbright->value && !!WORLDMODEL->lightdata;
// draw details in regular way
if( r_vbo_detail.value == 0 && surf->texinfo )
R_RenderDetailsForSurface( surf, surf->texinfo->texture );
if( surf->texinfo != NULL )
{
// fullbright textures are rare, no sense to build VBO for them
R_RenderFullbrightForSurface( surf, surf->texinfo->texture );
// draw details in regular way
if( r_vbo_detail.value )
R_RenderDetailsForSurface( surf, surf->texinfo->texture );
}
if( buildlightmap && R_CheckLightMap( surf ))
{