forked from organicmaps/organicmaps
[drape] new clear depth buffer function
This commit is contained in:
parent
a01ed92d8a
commit
6b2958cad3
2 changed files with 7 additions and 0 deletions
|
@ -194,6 +194,12 @@ void GLFunctions::glClear()
|
|||
GLCHECK(glClearFn(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
|
||||
}
|
||||
|
||||
void GLFunctions::glClearDepth()
|
||||
{
|
||||
ASSERT(glClearFn != NULL, ());
|
||||
GLCHECK(glClearFn(GL_DEPTH_BUFFER_BIT));
|
||||
}
|
||||
|
||||
void GLFunctions::glViewport(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
|
||||
{
|
||||
ASSERT(glViewportFn != NULL, ());
|
||||
|
|
|
@ -11,6 +11,7 @@ public:
|
|||
static bool glHasExtension(string const & name);
|
||||
static void glClearColor(float r, float g, float b, float a);
|
||||
static void glClear();
|
||||
static void glClearDepth();
|
||||
static void glViewport(uint32_t x, uint32_t y, uint32_t w, uint32_t h);
|
||||
static void glFlush();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue