mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00: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:
parent
9dfb127923
commit
64bd6a44d4
5 changed files with 25 additions and 26 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue