Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096679

FX3D doesn't work with DirectX debug runtime

    XMLWordPrintable

Details

    Description

      Selecting debug version of Direct3D 9 in control panel results in DrawIndexedPrimitive fail with D3DERR_INVALIDCALL in D3DMeshView::render()
      BaseMesh.buildGeometry pass vertex buffer size in floats to the buildNativeGeometry method as nNewVerts * VERTEX_SIZE.
      D3DMesh::buildBuffers then assign it to the numVertices member variable as is.
      It then used as NumVertices parameter in DrawIndexedPrimitive which expects the actual number of vertices, not the vertex buffer size in floats or in bytes.
      Debug runtime detects it and the call fails.

      Attachments

        Activity

          People

            vadim Vadim Pakhnushev
            vadim Vadim Pakhnushev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: