Fix missing texture not being properly uploaded to memory
This commit is contained in:
parent
8647d8e74a
commit
5901d756ee
@ -397,7 +397,7 @@ class StarboundClient : Closeable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer.position()
|
buffer.position(0)
|
||||||
missingTexture.upload(GL_RGB, GL_UNSIGNED_BYTE, buffer)
|
missingTexture.upload(GL_RGB, GL_UNSIGNED_BYTE, buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -477,7 +477,7 @@ class StarboundClient : Closeable {
|
|||||||
val data = Image.get(it)
|
val data = Image.get(it)
|
||||||
|
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
LOGGER.error("Texture $it is not found, falling back to missing texture")
|
LOGGER.error("Texture $it is not found!")
|
||||||
missingTexture
|
missingTexture
|
||||||
} else {
|
} else {
|
||||||
val tex = GLTexture2D(data.width, data.height, when (data.amountOfChannels) {
|
val tex = GLTexture2D(data.width, data.height, when (data.amountOfChannels) {
|
||||||
|
Loading…
Reference in New Issue
Block a user