mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 696093 - Fix ResizeOffscreenFBO not properly retrying when AA fails - r=bjacob
This commit is contained in:
parent
bee1f84b2f
commit
ad20b9ae6e
@ -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