This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDA4VM:[TDA4 OpenGL] glReadPixels 失败

Guru**** 2033340 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/956359/tda4vm-tda4-opengl-glreadpixels-failed

器件型号:TDA4VM

您好:

我需要屏幕截图、

因此我使用 glReadPixels 读取屏幕像素,但不需要读取任何内容,glGetError()返回 GL_INVALID_OPERATION,

TDA4不支持吗?

顺便说一下、同样的用例、在窗口上也是可以的。

----------------------------------------------------------------

GlReadPixels (0、580、100、100、GL_RGB、 gL_unsigned_byte、_pTexture);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    您可以尝试 GL_RGBA 而不是 GL_RGB 吗?

    此致

    Hemant