Bug 665622 - Fix unused variable warnings in GLContext.cpp & GLContextProviderEGL.cpp; r=joedrew

This commit is contained in:
Ed Morley 2011-06-23 19:01:17 -07:00
parent d9cf32e90f
commit d44febb3ea
2 changed files with 6 additions and 9 deletions

View File

@ -53,6 +53,8 @@
#include "gfxCrashReporterUtils.h"
#include "mozilla/Util.h" // for DebugOnly
namespace mozilla {
namespace gl {
@ -1777,7 +1779,7 @@ GLContext::SetBlitFramebufferForDestTexture(GLuint aTexture)
0);
if (aTexture) {
GLenum status = fCheckFramebufferStatus(LOCAL_GL_FRAMEBUFFER);
DebugOnly<GLenum> status = fCheckFramebufferStatus(LOCAL_GL_FRAMEBUFFER);
// Note: if you are hitting this assertion, it is likely that
// your texture is not texture complete -- that is, you

View File

@ -1767,7 +1767,6 @@ GetVendor()
already_AddRefed<GLContext>
GLContextProviderEGL::CreateForWindow(nsIWidget *aWidget)
{
EGLContext context;
EGLConfig config;
if (!sEGLLibrary.EnsureInitialized()) {
@ -2164,14 +2163,13 @@ ContentTypeToGLFormat(gfxASurface::gfxContentType aCType)
already_AddRefed<GLContext>
GLContextProviderEGL::CreateForNativePixmapSurface(gfxASurface* aSurface)
{
EGLSurface surface = nsnull;
EGLContext context = nsnull;
EGLConfig config = nsnull;
if (!sEGLLibrary.EnsureInitialized())
return nsnull;
#ifdef MOZ_X11
EGLSurface surface = nsnull;
EGLConfig config = nsnull;
if (aSurface->GetType() != gfxASurface::SurfaceTypeXlib) {
// Not implemented
return nsnull;
@ -2193,9 +2191,6 @@ GLContextProviderEGL::CreateForNativePixmapSurface(gfxASurface* aSurface)
return glContext.forget().get();
#else
(void)surface;
(void)context;
// Not implemented
return nsnull;
#endif