diff --git a/src/c/nehe.c b/src/c/nehe.c index 0ca8d67..40974b5 100644 --- a/src/c/nehe.c +++ b/src/c/nehe.c @@ -359,7 +359,7 @@ static SDL_GPUShader* LoadShaderBlob(NeHeContext* restrict ctx, .format = format, .stage = type, .num_samplers = (type == SDL_GPU_SHADERSTAGE_FRAGMENT) ? info->fragmentSamplers : 0, - .num_storage_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexUniforms : 0, + .num_storage_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexStorage : 0, .num_uniform_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexUniforms : 0, }); if (!shader)