mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 696093 - Fix ResizeOffscreenFBO not properly retrying when AA fails - r=bjacob
This commit is contained in:
parent
72ac2e4c02
commit
f8971f0786
@ -1030,14 +1030,14 @@ GLContext::ResizeOffscreenFBO(const gfxIntSize& aSize, const bool aUseReadFBO, c
|
||||
const int stencil = mCreationFormat.stencil;
|
||||
int samples = mCreationFormat.samples;
|
||||
|
||||
const bool useDrawMSFBO = (samples > 0) && SupportsFramebufferMultisample();
|
||||
if (!SupportsFramebufferMultisample() || aDisableAA)
|
||||
samples = 0;
|
||||
|
||||
const bool useDrawMSFBO = (samples > 0);
|
||||
|
||||
if (!useDrawMSFBO && !aUseReadFBO)
|
||||
return true;
|
||||
|
||||
if (!useDrawMSFBO || aDisableAA)
|
||||
samples = 0;
|
||||
|
||||
const bool firstTime = (mOffscreenDrawFBO == 0 && mOffscreenReadFBO == 0);
|
||||
|
||||
GLuint curBoundFramebufferDraw = 0;
|
||||
|
@ -1328,7 +1328,11 @@ protected:
|
||||
|
||||
if (!mCreationFormat.samples)
|
||||
return false;
|
||||
printf("ResizeOffscreenFBO failed with AA, retrying without...\n");
|
||||
|
||||
if (mDebugMode) {
|
||||
printf_stderr("Requested level of multisampling is unavailable, continuing without multisampling\n");
|
||||
}
|
||||
|
||||
return ResizeOffscreenFBO(aSize, aUseReadFBO, true);
|
||||
}
|
||||
void DeleteOffscreenFBO();
|
||||
|
Loading…
Reference in New Issue
Block a user