зеркало из https://github.com/mozilla/gecko-dev.git
Bug 665622 - Fix unused variable warnings in GLContext.cpp & GLContextProviderEGL.cpp; r=joedrew
This commit is contained in:
Родитель
07c860592d
Коммит
8e9e496bf0
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче