mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fix default shader storage buffer initialization;
This commit is contained in:
@@ -361,7 +361,7 @@ bool Graphics::setMode(int width, int height, int pixelwidth, int pixelheight, b
|
|||||||
data.resize(Buffer::SHADER_STORAGE_BUFFER_MAX_STRIDE / 4);
|
data.resize(Buffer::SHADER_STORAGE_BUFFER_MAX_STRIDE / 4);
|
||||||
|
|
||||||
auto buffer = newBuffer(settings, format, data.data(), data.size() * sizeof(float), data.size());
|
auto buffer = newBuffer(settings, format, data.data(), data.size() * sizeof(float), data.size());
|
||||||
defaultBuffers[BUFFERUSAGE_TEXEL].set(buffer, Acquire::NORETAIN);
|
defaultBuffers[BUFFERUSAGE_SHADER_STORAGE].set(buffer, Acquire::NORETAIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load default resources before other Volatile.
|
// Load default resources before other Volatile.
|
||||||
|
|||||||
Reference in New Issue
Block a user