2019-02-10

OpenGL frame buffer object无法glReadPixels

Views: 7501 | Add Comments

glReadPixels 报错:

glGetError() 返回 GL_INVALID_OPERATION(1282, 0x0502)

原因是 Multisample storage 的 framebuffer 无法被读取。所以,应该先 blit 到非 Multisample 的 fbo 之后再读取。

见:https://www.khronos.org/opengl/wiki/GL_EXT_framebuffer_multisample

Related posts:

  1. CVPixelBufferRef 与 CVOpenGLTextureRef: 图像处理中内存与显存的交互
  2. SSDB 双主(多主)同步模式现在 beta
  3. SSDB数据库的大规模应用
  4. 在PHP代码中使用LevelDB
  5. SSDB增加hlist, zlist命令
Posted by ideawu at 2019-02-10 03:02:13

Leave a Comment