This fixes the colour issue when using opengl and a HQ3 or 4x filter.
This commit is contained in:
parent
510e9778ab
commit
620548d19e
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue