fixed error returns
git-svn-id: svn://10.0.0.236/trunk@224761 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user