mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 13:33:34 +00:00
Fix bad assert for image uniforms;
This commit is contained in:
parent
3cc1b60fd8
commit
2e881cbda0
|
@ -525,7 +525,6 @@ static void lovrGpuBindTexture(Texture* texture, int slot) {
|
||||||
|
|
||||||
#ifndef EMSCRIPTEN
|
#ifndef EMSCRIPTEN
|
||||||
static void lovrGpuBindImage(Image* image, int slot) {
|
static void lovrGpuBindImage(Image* image, int slot) {
|
||||||
lovrThrow("Shaders can not write to textures on this system");
|
|
||||||
lovrAssert(slot >= 0 && slot < MAX_IMAGES, "Invalid image slot %d", slot);
|
lovrAssert(slot >= 0 && slot < MAX_IMAGES, "Invalid image slot %d", slot);
|
||||||
|
|
||||||
// This is a risky way to compare the two structs
|
// This is a risky way to compare the two structs
|
||||||
|
|
Loading…
Reference in a new issue