VideoTexture: fix RGB/BGR confusion, make code compatible with big endian CPU, add RGBA source filter.

This commit is contained in:
Benoit Bolsee
2008-11-04 12:04:59 +00:00
parent 6eb3bf53dd
commit 1886b7bf52
13 changed files with 162 additions and 69 deletions

View File

@@ -135,7 +135,7 @@ void ImageViewport::calcImage (unsigned int texId)
glReadPixels(m_upLeft[0], m_upLeft[1], (GLsizei)m_capSize[0], (GLsizei)m_capSize[1], GL_RGB,
GL_UNSIGNED_BYTE, m_viewportImage);
// filter loaded data
FilterBGR24 filt;
FilterRGB24 filt;
filterImage(filt, m_viewportImage, m_capSize);
}
}