mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Use GFXDevice::setupGenericShaders for support non Fixed Fuction Pipelines.
OpenGL and DirectX11 not support FFP, and GFDevice::disableShaders has not the necessary information to decide the shader to be used. GFDevice::SetupGenericShaders is used instead of GFDevice::disableShaders. GFDevice::disableShaders will be deprecated on T3D 4.0
This commit is contained in:
parent
2142d452d4
commit
33742599b3
12 changed files with 14 additions and 16 deletions
|
|
@ -245,7 +245,7 @@ void GuiTerrPreviewCtrl::onRender(Point2I offset, const RectI &updateRect)
|
|||
for(U32 i = 0; i < GFX->getNumSamplers(); i++)
|
||||
GFX->setTexture(i, NULL);
|
||||
|
||||
GFX->disableShaders();
|
||||
GFX->setupGenericShaders(GFXDevice::GSModColorTexture);
|
||||
|
||||
Point2F terrPos(terrBlock->getPosition().x, terrBlock->getPosition().y);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue