mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: add a variable to select FB output
Either 32bits/24bits/16bits
This commit is contained in:
parent
93c0d5a268
commit
d31bd97d59
|
@ -627,6 +627,7 @@ GLuint GSDeviceOGL::CompilePS(PSSelector sel)
|
|||
+ format("#define PS_WMT %d\n", sel.wmt)
|
||||
+ format("#define PS_FMT %d\n", sel.fmt)
|
||||
+ format("#define PS_IFMT %d\n", sel.ifmt)
|
||||
+ format("#define PS_DFMT %d\n", sel.dfmt)
|
||||
+ format("#define PS_AEM %d\n", sel.aem)
|
||||
+ format("#define PS_TFX %d\n", sel.tfx)
|
||||
+ format("#define PS_TCC %d\n", sel.tcc)
|
||||
|
|
|
@ -321,7 +321,9 @@ class GSDeviceOGL : public GSDevice
|
|||
|
||||
// Word 2
|
||||
uint32 blend:8;
|
||||
uint32 _free2:24;
|
||||
uint32 dfmt:2;
|
||||
|
||||
uint32 _free2:22;
|
||||
};
|
||||
|
||||
uint64 key;
|
||||
|
|
|
@ -249,6 +249,9 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
GSDeviceOGL::OMColorMaskSelector om_csel;
|
||||
GSDeviceOGL::OMDepthStencilSelector om_dssel;
|
||||
|
||||
// Format of the output
|
||||
ps_sel.dfmt = GSLocalMemory::m_psm[context->FRAME.PSM].fmt;
|
||||
|
||||
// Blend
|
||||
|
||||
if (!IsOpaque())
|
||||
|
|
Loading…
Reference in New Issue