Update guiMaterialPreview.cpp

more "fixes"
This commit is contained in:
marauder2k7 2024-12-04 23:59:43 +00:00
parent 291c5c75b6
commit e7a7935bd4

View file

@ -372,6 +372,9 @@ void GuiMaterialPreview::renderWorld(const RectI &updateRect)
mSaveFrustum = Frustum( isOrtho, left, right, bottom, top, nearPlane, farPlane, MatrixF::Identity );
mSaveFrustum.setTransform(MatrixF::Identity);
mSaveProjection = GFX->getProjectionMatrix();
mSaveWorldToScreenScale = GFX->getWorldToScreenScale();
FogData savedFogData = gClientSceneGraph->getFogData();
gClientSceneGraph->setFogData( FogData() ); // no fog in preview window