Skip to content

Commit

Permalink
(pixels-download) multiple texture patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborpapp committed Mar 28, 2011
1 parent 225f895 commit 74398ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libfluxus/src/PixelPrimitive.cpp
Expand Up @@ -503,6 +503,8 @@ void PixelPrimitive::DownloadPData()
if (m_FBOSupported)
{
Bind();

glReadBuffer(GL_COLOR_ATTACHMENT0_EXT + m_RenderTextureIndex);
GLubyte *data = GetScreenBuffer(0, 0, m_Width, m_Height, 1);
for (unsigned int i = 0; i < m_Width * m_Height; i++)
{
Expand Down

0 comments on commit 74398ce

Please sign in to comment.