Bug 950903 - 6/8 - Remove GLContext::GetNativeData - r=jgilbert

This commit is contained in:
Benoit Jacob
2014-01-07 15:02:18 -05:00
parent 0bb02a89f5
commit 91642bcc6c
16 changed files with 18 additions and 91 deletions

View File

@@ -6,7 +6,7 @@
#include "MacIOSurfaceTextureHostOGL.h"
#include "mozilla/gfx/MacIOSurface.h"
#include "mozilla/layers/CompositorOGL.h"
#include "GLContext.h"
#include "GLContextCGL.h"
namespace mozilla {
namespace layers {
@@ -77,7 +77,7 @@ MacIOSurfaceTextureSourceOGL::BindTexture(GLenum aTextureUnit)
gl()->fActiveTexture(aTextureUnit);
gl()->fBindTexture(LOCAL_GL_TEXTURE_RECTANGLE_ARB, tex);
mSurface->CGLTexImageIOSurface2D(static_cast<CGLContextObj>(gl()->GetNativeData(gl::GLContext::NativeCGLContext)));
mSurface->CGLTexImageIOSurface2D(gl::GLContextCGL::Cast(gl())->GetCGLContext());
gl()->fActiveTexture(LOCAL_GL_TEXTURE0);
}