mirror of
https://github.com/ScrelliCopter/NeHe-SDL_GPU.git
synced 2025-06-19 21:49:17 +10:00
c: Fix transfer buffer size
This commit is contained in:
@@ -178,7 +178,7 @@ static bool Lesson9_Init(NeHeContext* ctx)
|
|||||||
instanceXferBuffer = SDL_CreateGPUTransferBuffer(ctx->device, &(const SDL_GPUTransferBufferCreateInfo)
|
instanceXferBuffer = SDL_CreateGPUTransferBuffer(ctx->device, &(const SDL_GPUTransferBufferCreateInfo)
|
||||||
{
|
{
|
||||||
.usage = SDL_GPU_TRANSFERBUFFERUSAGE_UPLOAD,
|
.usage = SDL_GPU_TRANSFERBUFFERUSAGE_UPLOAD,
|
||||||
.size = sizeof(Instance) * numStars
|
.size = sizeof(Instance) * 2 * numStars
|
||||||
});
|
});
|
||||||
if (!instanceXferBuffer)
|
if (!instanceXferBuffer)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user