I have a problem to create an image from bytebuffer. The weird thing is, the code works just fine for my GeForce graphic card but do not work for ATI graphic card.
Texture2D texture = new Texture2D(256, 256, Format.RGBA8); ByteBuffer byteBuffer = BufferUtils.createByteBuffer(256 * 256 * 4); texture.setImage(new Image(Format.RGBA8, 256, 256, byteBuffer)); texture.setMinFilter(Texture.MinFilter.Trilinear);
After that I fill the bytebuffer with some values.
byteBuffer.put((byte) 164); this.byteBuffer.put((byte) 206); this.byteBuffer.put((byte) 255); this.byteBuffer.put((byte) 255);
That is all. On my Geforce graphic card the resulting Texture is ok but on ATI graphic card is just a dark grey texture.
I tested this issue with two different Geforce and two different ATI graphic cards.
Does anyone has the same problems and can help? There are no errors in log, so it is really difficult to find the root cause.
thx for help!