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.
您好:
我对 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