Solved.  It's a scaling problem.  My textures were being density-
scaled on load and thus were no longer power-of-two when I tried to
use them.

On Dec 18, 4:15 pm, Robert Green <[email protected]> wrote:
> Just started testing my games on the Droid in native res (any density
> enabled).  I've been using (scaled density) compatibility mode up
> until now.  Everything works except for the textures.
>
> OpenGL throws error 1281 (Invalid Value) when loading in that mode
> (480x854).  Everything loads fine when I go back to compatibility
> (320x597).
>
> I'm trying to use GLUtils.texImage2D(GL10.GL_TEXTURE_2D, level,
> bitmap, 0).  That's it.  I used a GLSurfaceView to configure GL so all
> settings should be standard/default.
>
> This is working on every device except the Droid and it even works on
> it when I don't have "any density" enabled.  Is this a bug or am I
> actually doing something wrong?

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

Reply via email to