HW accelerated activity - how to get OpenGL texture size limit?

后端 未结 4 484
时光取名叫无心
时光取名叫无心 2020-11-27 13:23

I\'m trying to enable hw acceleration in Honeycomb, and display some Bitmaps on Canvas. All works fine, but for large bitmaps (>2048 in one dimension), I get error in log:

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 14:12

    According to the specification, calling glGetIntegerv with GL_MAX_TEXTURE_SIZE.

    GL_MAX_TEXTURE_SIZE params returns one value. The value gives a rough estimate of the largest texture that the GL can handle. The value must be at least 64.

    http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGet.xml

提交回复
热议问题