mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- create the savepic framebuffer without multisampling.
It didn't work and doesn't need it so let's save that piece of video memory.
This commit is contained in:
parent
e923ef5d3a
commit
7b6bd34a58
3 changed files with 6 additions and 4 deletions
|
@ -44,8 +44,9 @@ namespace OpenGLRenderer
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
FGLRenderBuffers::FGLRenderBuffers()
|
||||
FGLRenderBuffers::FGLRenderBuffers(int ms)
|
||||
{
|
||||
gl_multisample = ms;
|
||||
glGetIntegerv(GL_MAX_SAMPLES, &mMaxSamples);
|
||||
}
|
||||
|
||||
|
|
|
@ -101,8 +101,9 @@ private:
|
|||
|
||||
class FGLRenderBuffers
|
||||
{
|
||||
int gl_multisample = 0; // intentionally overload the global CVAR
|
||||
public:
|
||||
FGLRenderBuffers();
|
||||
FGLRenderBuffers(int ms);
|
||||
~FGLRenderBuffers();
|
||||
|
||||
void Setup(int width, int height, int sceneWidth, int sceneHeight);
|
||||
|
|
|
@ -88,8 +88,8 @@ FGLRenderer::FGLRenderer(OpenGLFrameBuffer *fb)
|
|||
|
||||
void FGLRenderer::Initialize(int width, int height)
|
||||
{
|
||||
mScreenBuffers = new FGLRenderBuffers();
|
||||
mSaveBuffers = new FGLRenderBuffers();
|
||||
mScreenBuffers = new FGLRenderBuffers(gl_multisample);
|
||||
mSaveBuffers = new FGLRenderBuffers(0);
|
||||
mBuffers = mScreenBuffers;
|
||||
mPresentShader = new FPresentShader();
|
||||
mPresent3dCheckerShader = new FPresent3DCheckerShader();
|
||||
|
|
Loading…
Reference in a new issue