mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-20 07:03:46 +00:00
Merge pull request #927 from BeamNG/setupgenericshader
Add GFXDevice::setupGenericShader for fix render on non FFP.
This commit is contained in:
commit
07b0ea9ca6
4 changed files with 4 additions and 1 deletions
|
|
@ -621,6 +621,7 @@ void GFXDrawUtil::drawLine( F32 x1, F32 y1, F32 z1, F32 x2, F32 y2, F32 z2, cons
|
|||
|
||||
mDevice->setVertexBuffer( verts );
|
||||
mDevice->setStateBlock( mRectFillSB );
|
||||
mDevice->setupGenericShaders();
|
||||
mDevice->drawPrimitive( GFXLineList, 0, 1 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,6 +126,7 @@ namespace
|
|||
desc.setBlend(true, GFXBlendSrcAlpha, GFXBlendInvSrcAlpha);
|
||||
GFX->setStateBlockByDesc( desc );
|
||||
|
||||
GFX->setupGenericShaders();
|
||||
GFX->drawPrimitive( GFXTriangleStrip, 0, 2 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -394,6 +394,7 @@ void GuiTextEditSliderCtrl::onRender(Point2I offset, const RectI &updateRect)
|
|||
verts.unlock();
|
||||
|
||||
GFX->setVertexBuffer( verts );
|
||||
GFX->setupGenericShaders();
|
||||
GFX->drawPrimitive( GFXTriangleList, 0, 2 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1471,7 +1471,7 @@ void WorldEditor::renderSplinePath(SimPath::Path *path)
|
|||
}
|
||||
|
||||
GFX->setStateBlock(mSplineSB);
|
||||
|
||||
GFX->setupGenericShaders();
|
||||
|
||||
if (path->isLooping())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue