This fixes the colour issue when using opengl and a HQ3 or 4x filter.

This commit is contained in:
squall-leonhart 2013-09-17 15:23:47 +00:00
parent 510e9778ab
commit 620548d19e
1 changed files with 3 additions and 3 deletions

View File

@ -345,9 +345,9 @@ bool OpenGLDisplay::initialize()
cpu_mmx = 0;
#endif
systemRedShift = 3;
systemRedShift = 19;
systemGreenShift = 11;
systemBlueShift = 19;
systemBlueShift = 3;
systemColorDepth = 32;
theApp.fsColorDepth = 32;
@ -401,7 +401,7 @@ void OpenGLDisplay::render()
} else {
glPixelStorei( GL_UNPACK_ROW_LENGTH, theApp.sizeX + 1 );
}
glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_RGBA,GL_UNSIGNED_BYTE,data );
glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_BGRA,GL_UNSIGNED_BYTE,data );
glBegin( GL_QUADS );