0

我无法让 ((GL11Ext) gl).glDrawTexfOES / glDrawTexiOES 扩展在我的 Tegra 3 设备 (HTC One X) 上工作。启用 GL 错误后,我得到以下 GLException:“内存不足”。

相同的代码适用于我尝试的所有其他 Android 设备/模拟器,但我的 One XI 总是会出现此错误。我已经尝试过减小纹理大小,但没有任何区别。(是的,纹理尺寸总是 2 的幂)。

有没有其他人遇到过这个问题?有任何想法吗?谢谢。

4

2 回答 2

0

It looks like Tegra 3 just doesn't support this extension. So in the end, I changed TexFont to render textured "quads" and it seems to work ok.

于 2012-07-18T16:07:46.603 回答
0
for(int lines = fntTexHeight-1; lines>0 ; --lines) {    
    pix.put(bits, lines * lineLen, lineLen);
}

**pix.position(0);**  //need this

// Place bitmap in texture

gl.glBindTexture(GL10.GL_TEXTURE_2D, texID);
于 2013-12-18T08:48:28.340 回答