Ignore:
Timestamp:
Apr 20, 2012, 6:33:09 PM (10 years ago)
Author:
sam
Message:

gpu: fix a great lot of Direct3D problems, spotted using PIX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/tut02.cpp

    r1238 r1241  
    179179        if (FAILED(g_d3ddevice->SetIndices(m_ibo)))
    180180            Abort();
    181         if (FAILED(g_d3ddevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 0, 0, sizeof(m_indices) / sizeof(*m_indices))))
     181        if (FAILED(g_d3ddevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 8, 0, sizeof(m_indices) / sizeof(*m_indices))))
    182182            Abort();
    183183#elif !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__
Note: See TracChangeset for help on using the changeset viewer.