@@ -2994,7 +2994,7 @@ void BspRenderer::render(bool modelVertsDraw, int clipnodeHull)
2994
2994
2995
2995
2996
2996
2997
- if (g_app->pickMode == PICK_FACE_LEAF && !ortho_overview)
2997
+ if (g_app->pickMode == PICK_FACE_LEAF && !ortho_overview && !make_screenshot )
2998
2998
{
2999
2999
glDepthMask (GL_FALSE);
3000
3000
glDepthFunc (GL_ALWAYS);
@@ -3026,7 +3026,7 @@ void BspRenderer::drawModelClipnodes(int modelIdx, bool highlight, int hullIdx)
3026
3026
hullIdx = getBestClipnodeHull (modelIdx);
3027
3027
}
3028
3028
3029
- if (hullIdx <= -1 || hullIdx > 3 || ortho_overview)
3029
+ if (hullIdx <= -1 || hullIdx > 3 || ortho_overview || make_screenshot )
3030
3030
{
3031
3031
return ; // nothing can be drawn
3032
3032
}
@@ -3102,7 +3102,7 @@ void BspRenderer::drawModel(RenderEnt* ent, int pass, bool highlight, bool edges
3102
3102
if (pass == REND_PASS_COLORSHADER)
3103
3103
{
3104
3104
RenderModel* rend_mdl = renderModels[modelIdx];
3105
- if (rend_mdl->wireframeBuffer && !ortho_overview)
3105
+ if (rend_mdl->wireframeBuffer && !ortho_overview && !make_screenshot )
3106
3106
{
3107
3107
if (ent && ent->isDuplicateModel )
3108
3108
rend_mdl->wireframeBuffer ->frameId --;
@@ -3187,7 +3187,7 @@ void BspRenderer::drawModel(RenderEnt* ent, int pass, bool highlight, bool edges
3187
3187
{
3188
3188
if (rgroup.special )
3189
3189
{
3190
- if (ortho_overview)
3190
+ if (ortho_overview | make_screenshot )
3191
3191
continue ;
3192
3192
3193
3193
if (modelIdx == 0 && !(g_render_flags & RENDER_SPECIAL))
@@ -3273,7 +3273,7 @@ void BspRenderer::drawModel(RenderEnt* ent, int pass, bool highlight, bool edges
3273
3273
}
3274
3274
3275
3275
3276
- if (g_app->pickMode != PICK_OBJECT && highlight && !ortho_overview)
3276
+ if (g_app->pickMode != PICK_OBJECT && highlight && !ortho_overview && !make_screenshot )
3277
3277
{
3278
3278
if (ent)
3279
3279
{
@@ -3285,7 +3285,7 @@ void BspRenderer::drawModel(RenderEnt* ent, int pass, bool highlight, bool edges
3285
3285
}
3286
3286
else
3287
3287
{
3288
- if (highlight && !ortho_overview)
3288
+ if (highlight && !ortho_overview && !make_screenshot )
3289
3289
{
3290
3290
if (ent)
3291
3291
{
@@ -3329,7 +3329,7 @@ void BspRenderer::drawPointEntities(std::vector<int> highlightEnts, int pass)
3329
3329
if (mapEnt->hide )
3330
3330
continue ;
3331
3331
3332
- if (ortho_overview)
3332
+ if (ortho_overview || make_screenshot )
3333
3333
{
3334
3334
if (!starts_with (mapEnt->classname , " cycler_" ) &&
3335
3335
!starts_with (mapEnt->classname , " func_" ))
@@ -3338,7 +3338,7 @@ void BspRenderer::drawPointEntities(std::vector<int> highlightEnts, int pass)
3338
3338
}
3339
3339
}
3340
3340
3341
- if (g_app->pickInfo .IsSelectedEnt (i) && !ortho_overview)
3341
+ if (g_app->pickInfo .IsSelectedEnt (i) && !ortho_overview && !make_screenshot )
3342
3342
{
3343
3343
if (g_render_flags & RENDER_SELECTED_AT_TOP)
3344
3344
glDepthFunc (GL_ALWAYS);
@@ -3359,7 +3359,7 @@ void BspRenderer::drawPointEntities(std::vector<int> highlightEnts, int pass)
3359
3359
renderEnts[i].spr ->DrawSprite ();
3360
3360
}
3361
3361
}
3362
- else if (pass == REND_PASS_COLORSHADER && !ortho_overview)
3362
+ else if (pass == REND_PASS_COLORSHADER && !ortho_overview && !make_screenshot )
3363
3363
{
3364
3364
g_app->matmodel = renderEnts[i].modelMat4x4_calc_angles ;
3365
3365
g_app->colorShader ->updateMatrixes ();
@@ -3380,7 +3380,7 @@ void BspRenderer::drawPointEntities(std::vector<int> highlightEnts, int pass)
3380
3380
}
3381
3381
else
3382
3382
{
3383
- if (pass == REND_PASS_COLORSHADER && !ortho_overview)
3383
+ if (pass == REND_PASS_COLORSHADER && !ortho_overview && !make_screenshot )
3384
3384
{
3385
3385
g_app->matmodel = renderEnts[i].modelMat4x4_calc_angles ;
3386
3386
g_app->colorShader ->updateMatrixes ();
@@ -3434,7 +3434,7 @@ void BspRenderer::drawPointEntities(std::vector<int> highlightEnts, int pass)
3434
3434
}
3435
3435
else
3436
3436
{
3437
- if (pass == REND_PASS_COLORSHADER && !ortho_overview)
3437
+ if (pass == REND_PASS_COLORSHADER && !ortho_overview && !make_screenshot )
3438
3438
{
3439
3439
g_app->matmodel = renderEnts[i].modelMat4x4_calc_angles ;
3440
3440
g_app->colorShader ->updateMatrixes ();
0 commit comments