OPENGL: Honor the configured MSAA samples for FBOs
This commit is contained in:
parent
dc3e371dc0
commit
5ae1e3a01c
4 changed files with 26 additions and 10 deletions
|
@ -56,7 +56,7 @@ private:
|
|||
#if !defined(USE_GLES2) && !defined(AMIGAOS)
|
||||
class MultiSampleFrameBuffer : public FrameBuffer {
|
||||
public:
|
||||
MultiSampleFrameBuffer(uint width, uint height);
|
||||
MultiSampleFrameBuffer(uint width, uint height, int samples);
|
||||
virtual ~MultiSampleFrameBuffer();
|
||||
|
||||
virtual void attach();
|
||||
|
@ -67,6 +67,7 @@ private:
|
|||
GLuint _msFrameBufferId;
|
||||
GLuint _msColorId;
|
||||
GLuint _msDepthId;
|
||||
GLuint _msSamples;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue