This fixes the colour issue when using opengl and a HQ3 or 4x filter.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1204 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
d4ba5638ac
commit
a9da83f563
|
@ -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