mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1569 from Areloch/SimPathDX11Fix
Fix for SimPath to make DX11 compatible.
This commit is contained in:
commit
b9b11047bf
2 changed files with 3 additions and 3 deletions
|
|
@ -273,7 +273,7 @@ DefineEngineMethod( Path, getPathId, S32, (),,
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
|
||||||
GFXStateBlockRef Marker::smStateBlock;
|
GFXStateBlockRef Marker::smStateBlock;
|
||||||
GFXVertexBufferHandle<GFXVertexPC> Marker::smVertexBuffer;
|
GFXVertexBufferHandle<GFXVertexPCT> Marker::smVertexBuffer;
|
||||||
GFXPrimitiveBufferHandle Marker::smPrimitiveBuffer;
|
GFXPrimitiveBufferHandle Marker::smPrimitiveBuffer;
|
||||||
|
|
||||||
static Point3F wedgePoints[4] = {
|
static Point3F wedgePoints[4] = {
|
||||||
|
|
@ -295,7 +295,7 @@ void Marker::initGFXResources()
|
||||||
smStateBlock = GFX->createStateBlock(d);
|
smStateBlock = GFX->createStateBlock(d);
|
||||||
|
|
||||||
smVertexBuffer.set(GFX, 4, GFXBufferTypeStatic);
|
smVertexBuffer.set(GFX, 4, GFXBufferTypeStatic);
|
||||||
GFXVertexPC* verts = smVertexBuffer.lock();
|
GFXVertexPCT* verts = smVertexBuffer.lock();
|
||||||
verts[0].point = wedgePoints[0] * 1.25f;
|
verts[0].point = wedgePoints[0] * 1.25f;
|
||||||
verts[1].point = wedgePoints[1] * 1.25f;
|
verts[1].point = wedgePoints[1] * 1.25f;
|
||||||
verts[2].point = wedgePoints[2] * 1.25f;
|
verts[2].point = wedgePoints[2] * 1.25f;
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ class Marker : public SceneObject
|
||||||
static void initGFXResources();
|
static void initGFXResources();
|
||||||
|
|
||||||
static GFXStateBlockRef smStateBlock;
|
static GFXStateBlockRef smStateBlock;
|
||||||
static GFXVertexBufferHandle<GFXVertexPC> smVertexBuffer;
|
static GFXVertexBufferHandle<GFXVertexPCT> smVertexBuffer;
|
||||||
static GFXPrimitiveBufferHandle smPrimitiveBuffer;
|
static GFXPrimitiveBufferHandle smPrimitiveBuffer;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue