mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-08 03:16:30 -05:00
ogl: use texture_2d instead of renderbuffer for realxfb + efb2ram fbo
It should do the same on gpu, but textures are more flexible. eg we could copy and sample them directly without blitting.
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OGL {
|
||||
|
||||
struct XFBSource : public XFBSourceBase
|
||||
{
|
||||
XFBSource(GLuint rbuf) : renderbuf(rbuf) {}
|
||||
XFBSource(GLuint tex) : texture(tex) {}
|
||||
~XFBSource();
|
||||
|
||||
void CopyEFB(float Gamma);
|
||||
@@ -54,7 +54,7 @@ struct XFBSource : public XFBSourceBase
|
||||
void Draw(const MathUtil::Rectangle<float> &sourcerc,
|
||||
const MathUtil::Rectangle<float> &drawrc, int width, int height) const;
|
||||
|
||||
const GLuint renderbuf;
|
||||
const GLuint texture;
|
||||
};
|
||||
|
||||
inline GLenum getFbType()
|
||||
|
||||
Reference in New Issue
Block a user