diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt index f16fe6b1..549fd14d 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt @@ -397,7 +397,7 @@ class StarboundClient : Closeable { } } - buffer.position() + buffer.position(0) missingTexture.upload(GL_RGB, GL_UNSIGNED_BYTE, buffer) } @@ -477,7 +477,7 @@ class StarboundClient : Closeable { val data = Image.get(it) if (data == null) { - LOGGER.error("Texture $it is not found, falling back to missing texture") + LOGGER.error("Texture $it is not found!") missingTexture } else { val tex = GLTexture2D(data.width, data.height, when (data.amountOfChannels) {