mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fixed error returns
This commit is contained in:
parent
940f8ab5ac
commit
ceac8fed26
@ -155,7 +155,7 @@ nsGLPbuffer::Resize(PRInt32 width, PRInt32 height)
|
||||
if (!WGLEW_ARB_pbuffer || !WGLEW_ARB_pixel_format)
|
||||
{
|
||||
mPriv->LogMessage(NS_LITERAL_CSTRING("Canvas 3D: WGL_ARB_pbuffer or WGL_ARB_pixel_format not available."));
|
||||
return NS_ERROR_FAILURE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
int attribs[] = {
|
||||
@ -188,7 +188,7 @@ nsGLPbuffer::Resize(PRInt32 width, PRInt32 height)
|
||||
{
|
||||
mPriv->LogMessage(NS_LITERAL_CSTRING("Canvas 3D: wglChoosePixelFormat failed (or couldn't find any matching formats)."));
|
||||
ReleaseDC(NULL, mGlewDC);
|
||||
return NS_ERROR_FAILURE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
nsAutoArrayPtr<int> formats = new int [numFormats];
|
||||
@ -242,7 +242,7 @@ nsGLPbuffer::Resize(PRInt32 width, PRInt32 height)
|
||||
|
||||
if (chosenFormat == -1) {
|
||||
mPriv->LogMessage(NS_LITERAL_CSTRING("Canvas 3D: Couldn't find a suitable pixel format!"));
|
||||
return NS_ERROR_FAILURE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
// ok, we now have a pixel format
|
||||
@ -252,7 +252,7 @@ nsGLPbuffer::Resize(PRInt32 width, PRInt32 height)
|
||||
mPbuffer = wglCreatePbufferARB(mGlewDC, chosenFormat, width, height, &pbattribs);
|
||||
if (!mPbuffer) {
|
||||
mPriv->LogMessage(NS_LITERAL_CSTRING("Canvas 3D: Failed to create pbuffer"));
|
||||
return NS_ERROR_FAILURE;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
mPbufferDC = wglGetPbufferDCARB(mPbuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user