diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-19 17:22:05 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-19 17:22:05 +0000 |
commit | 971d0c8049c6bfc7a58f0b41f8f59f9ec9ca077b (patch) | |
tree | 1ad234571b6f62cd6d0a0483807c845e965b7814 /src/utils/mesa | |
parent | 3008519e9f977cd60194841d558a4f45c28e9833 (diff) |
Get rid of createRenderTargetFrom3DAPIState and associated glGets necessary to support it.
Review URL: http://codereview.appspot.com/4928041/
git-svn-id: http://skia.googlecode.com/svn/trunk@2144 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/mesa')
-rw-r--r-- | src/utils/mesa/SkEGLContext_Mesa.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/utils/mesa/SkEGLContext_Mesa.cpp b/src/utils/mesa/SkEGLContext_Mesa.cpp index fdb2ac0602..1174dedbcc 100644 --- a/src/utils/mesa/SkEGLContext_Mesa.cpp +++ b/src/utils/mesa/SkEGLContext_Mesa.cpp @@ -15,7 +15,10 @@ #define SK_GL_GET_PROC(T, F) F ## _func = (T)OSMesaGetProcAddress(#F); #define SK_GL_GET_EXT_PROC(T, F) F ## _func = (T)OSMesaGetProcAddress(#F "EXT"); -SkEGLContext::SkEGLContext() : context(NULL), image(NULL) { +SkEGLContext::SkEGLContext() + : fFBO(0) + , context(NULL) + , image(NULL) { } SkEGLContext::~SkEGLContext() { @@ -110,11 +113,10 @@ bool SkEGLContext::init(const int width, const int height) { return false; } - GLuint fboID; GLuint cbID; GLuint dsID; - glGenFramebuffers_func(1, &fboID); - glBindFramebuffer_func(GL_FRAMEBUFFER, fboID); + glGenFramebuffers_func(1, &fFBO); + glBindFramebuffer_func(GL_FRAMEBUFFER, fFBO); glGenRenderbuffers_func(1, &cbID); glBindRenderbuffer_func(GL_RENDERBUFFER, cbID); |