diff Render.cpp @ 101:2fb33d31ca0d

8.02.13
author Ritor1
date Fri, 08 Feb 2013 15:59:32 +0600
parents b9196a36b7c9
children 23b213c3f8e1
line wrap: on
line diff
--- a/Render.cpp	Thu Feb 07 15:25:44 2013 +0600
+++ b/Render.cpp	Fri Feb 08 15:59:32 2013 +0600
@@ -11451,12 +11451,12 @@
 
   for (uint i = pRenderer->uNumBillboardsToDraw - 1; i != (uint)-1; --i)
   {
-    auto p = pRenderer->pBillboardRenderListD3D + i;
+    auto p = &pRenderer->pBillboardRenderListD3D[i];
 
     if (p->uOpacity != RenderBillboardD3D::InvalidOpacity)
       SetBillboardBlendOptions(p->uOpacity);
     
-    ErrD3D(pRenderer->pRenderD3D->pDevice->SetTexture(0, p->pTexture));
+    pRenderer->pRenderD3D->pDevice->SetTexture(0, p->pTexture);
     ErrD3D(pRenderer->pRenderD3D->pDevice->DrawPrimitive(D3DPT_TRIANGLEFAN, D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEX1,
         p->pQuards, p->uNumVertices, D3DDP_DONOTLIGHT | D3DDP_DONOTUPDATEEXTENTS));
   }