Backed out changeset b3589228e8b1 (bug 1142975) for gl failures

This commit is contained in:
Wes Kocher 2015-03-16 17:25:30 -07:00
parent 1dfaa452f9
commit d43339b8cc

View File

@ -749,8 +749,6 @@ bool
WebGLContext::ResizeBackbuffer(uint32_t requestedWidth,
uint32_t requestedHeight)
{
MOZ_ASSERT(!IsContextLost());
uint32_t width = requestedWidth;
uint32_t height = requestedHeight;
@ -829,11 +827,6 @@ WebGLContext::SetDimensions(int32_t signedWidth, int32_t signedHeight)
// If we've already drawn, we should commit the current buffer.
PresentScreenBuffer();
if (IsContextLost()) {
GenerateWarning("WebGL context was lost due to swap failure.");
return NS_OK;
}
// ResizeOffscreen scraps the current prod buffer before making a new one.
if (!ResizeBackbuffer(width, height)) {
GenerateWarning("WebGL context failed to resize.");