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
Родитель 20c8951f6d
Коммит f53fe18939
2 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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