graphics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 642a09220b4f704ecb87ff1001ad2c923b61494b
parent 9541ae156f5ae87950a3e7b9d2f40bf326de1bb2
Author: Brian Swetland <swetland@frotz.net>
Date:   Fri,  1 Feb 2013 22:34:33 -0800

dxapp: create index buffers with the correct bind flags

Diffstat:
Mcommon/app.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/app.h b/common/app.h @@ -61,7 +61,7 @@ protected: return createBuffer(D3D10_BIND_VERTEX_BUFFER, data, sz, buf); } int createIdxBuffer(void *data, int sz, ID3D10Buffer **buf) { - return createBuffer(D3D10_BIND_VERTEX_BUFFER, data, sz, buf); + return createBuffer(D3D10_BIND_INDEX_BUFFER, data, sz, buf); } int createConstantBuffer(int sz, ID3D10Buffer **buf) { return createBuffer(D3D10_BIND_CONSTANT_BUFFER, NULL, sz, buf);