Skip to content

Commit

Permalink
UPBGE: Disable background render in wire render mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Feb 17, 2016
1 parent 74072ce commit da69af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_WorldInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void KX_WorldInfo::UpdateWorldSettings()

void KX_WorldInfo::RenderBackground(RAS_IRasterizer *rasty)
{
if (m_hasworld && m_scene->gm.flag & GAME_RENDER_WORLD_BACKGROUND) {
if (m_hasworld && m_scene->gm.flag & GAME_RENDER_WORLD_BACKGROUND && rasty->GetDrawingMode() >= RAS_IRasterizer::RAS_SOLID) {
GPUMaterial *gpumat = GPU_material_world(m_scene, m_scene->world);

float viewmat[4][4];
Expand Down

0 comments on commit da69af4

Please sign in to comment.