1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Fix bad assert for image uniforms;

This commit is contained in:
bjorn 2018-09-02 21:15:43 -07:00
parent 3cc1b60fd8
commit 2e881cbda0

View file

@ -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