Thanks for the replys

Yes, I use RGB 565 and my first Texture is: 512x512

bitmap =
BitmapFactory.decodeStream( getAssets().open("icon_512.png") );
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);

This is showing nice ... but then the Bitmap in the
"canvasBufferAsShort" Buffer (320x200) is not shown with:

gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, GL10.GL_RGB,
bufferWidth,bufferHeight, 0, GL10.GL_RGB, GL10.GL_UNSIGNED_BYTE,
null);
gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, bufferWidth,
bufferHeight, GL10.GL_RGB, GL10.GL_UNSIGNED_SHORT_5_6_5,
canvasBufferAsShort);

and Im getting glGetError = 1281

Is 320x200 not a power of 2? Or is there another point of the Power VR
Chip of my Galaxy Nexus I must handle?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to