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:[OpenGL]如何显示 glReadPixels 缓存中的缓冲区

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/980015/tda4vm-opengl-how-to-show-the-buffer-whitch-the-glreadpixels-caches

器件型号:TDA4VM

您好:

我对 glReadPixels 有疑问。

我已经使用 glReadPixels 缓存缓冲区。

但是当我格式为 TextImage2D 并绘制该缓冲区时, 它会出现 PVR 错误:PVR:(Error): IsTextureCon坚持:IMGEGLImage 不一致[:0]

如果我想查看缓冲区内容、该怎么做?

-------------------------------------------------- 以下是代码--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      GlReadPixels (0、0、512、512、GL_RGBA、 gL_unsigned_byte、缓冲区);
      if (*(unsigned char*) buffer)
      {
         glBindTexture (GL_Titure_2D、_uiTexAllView);
         glTextImage2D (GL_t纹 理_2D、0、GL_RGBA、512、512、 0、GL_RGBA、GL_unsigned_byte、缓冲区);
         GlTextParameteri (GL_turete_2D、GL_turete_min_filter、GL_linear);
         GlTextParameteri (GL_turete_2D、GL_turete_mag_filter、GL_linear);

      }

glActiveTexture (GL_TEXTURE5);

glBindTexture (GL_Titure_2D、_uiTexAllView);

glDrawElements (GL_triangles、6、GL_unsigned_INT、0);

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

    您好!

    您是否仅在调用 glReadPixels 时收到此错误? 您是否能够使用 buffer 和_uiTextAllView 显示任何纹理? 不确定在这种情况下为何使用 EGLImage。

    此致

    Hemant