diff options
author | twiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-03-14 21:23:01 +0000 |
---|---|---|
committer | twiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-03-14 21:23:01 +0000 |
commit | 59a190bcab5d4b2bf03f8f10cb6a581d19fed403 (patch) | |
tree | 86335475250c187f467aeff3bfb8d81084016c1f /gpu/src/GrGLTexture.cpp | |
parent | cd9d69b9ce7eb301a9fd8d91b9f95fd99b07bae5 (diff) |
Implementation of a GL-virtualization layer for Skia. This allows for
environments using skia to specify a GL implementation at run-time, instead of
relying on the linker to pull in the appropriate GL impl.
A new structure, GrGLInterface is exposed. This struct contains a set of
function pointers that should point to an appropriate GL implementation.
This change also removes the reliance on GLew on windows builds.
Review: http://codereview.appspot.com/4254059/
git-svn-id: http://skia.googlecode.com/svn/trunk@937 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLTexture.cpp')
-rw-r--r-- | gpu/src/GrGLTexture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gpu/src/GrGLTexture.cpp b/gpu/src/GrGLTexture.cpp index 1acb871c79..7488d0f140 100644 --- a/gpu/src/GrGLTexture.cpp +++ b/gpu/src/GrGLTexture.cpp @@ -43,16 +43,16 @@ GrGLRenderTarget::~GrGLRenderTarget() { fGL->notifyRenderTargetDelete(this); if (fOwnIDs) { if (fTexFBOID) { - GR_GLEXT(fGL->extensions(), DeleteFramebuffers(1, &fTexFBOID)); + GR_GL(DeleteFramebuffers(1, &fTexFBOID)); } if (fRTFBOID && fRTFBOID != fTexFBOID) { - GR_GLEXT(fGL->extensions(), DeleteFramebuffers(1, &fRTFBOID)); + GR_GL(DeleteFramebuffers(1, &fRTFBOID)); } if (fStencilRenderbufferID) { - GR_GLEXT(fGL->extensions(), DeleteRenderbuffers(1, &fStencilRenderbufferID)); + GR_GL(DeleteRenderbuffers(1, &fStencilRenderbufferID)); } if (fMSColorRenderbufferID) { - GR_GLEXT(fGL->extensions(), DeleteRenderbuffers(1, &fMSColorRenderbufferID)); + GR_GL(DeleteRenderbuffers(1, &fMSColorRenderbufferID)); } } GrSafeUnref(fTexIDObj); |