开发者

glTexParameter on Android -> OpenGL Error

开发者 https://www.devze.com 2023-03-21 20:44 出处:网络
I have a strange problem when using the above mentioned method: gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR_MIPMAP_LINEAR);

I have a strange problem when using the above mentioned method:

gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR_MIPMAP_LINEAR);

While this works great on the Android emulator I get an Open GL error on the actual device (samsung galaxy). The error is GL_INVALID_VAL开发者_开发百科UE (Code 0x501).

Why is that?


GL_TEXTURE_MAG_FILTER doesn't take anything other than GL_NEAREST or GL_LINEAR

0

精彩评论

暂无评论...
验证码 换一张
取 消