forked from organicmaps/organicmaps
[WinGL] Added missing glCheckFramebufferStatusEXT
This commit is contained in:
parent
dc051c9f41
commit
e2f07d8e17
2 changed files with 4 additions and 1 deletions
|
@ -28,11 +28,12 @@ PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT;
|
|||
PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT;
|
||||
PFNGLMAPBUFFERPROC glMapBuffer;
|
||||
PFNGLUNMAPBUFFERPROC glUnmapBuffer;
|
||||
PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT;
|
||||
|
||||
namespace win32
|
||||
{
|
||||
template <class TRet>
|
||||
TRet GetGLProc(HMODULE hInst, char const * name)
|
||||
TRet GetGLProc(HMODULE, char const * name)
|
||||
{
|
||||
PROC p = ::wglGetProcAddress(name);
|
||||
if (p == 0)
|
||||
|
@ -67,6 +68,7 @@ namespace win32
|
|||
glUnmapBuffer = GetGLProc<PFNGLUNMAPBUFFERPROC>(hInst, "glUnmapBuffer");
|
||||
glBlitFramebuffer = GetGLProc<PFNGLBLITFRAMEBUFFERPROC>(hInst, "glBlitFramebuffer");
|
||||
glRenderbufferStorageMultisample = GetGLProc<PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC>(hInst, "glRenderbufferStorageMultisample");
|
||||
glCheckFramebufferStatusEXT = GetGLProc<PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC>(hInst, "glCheckFramebufferStatusEXT");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ extern PFNGLRENDERBUFFERSTORAGEEXTPROC glRenderbufferStorageEXT;
|
|||
extern PFNGLDELETERENDERBUFFERSEXTPROC glDeleteRenderbuffersEXT;
|
||||
extern PFNGLMAPBUFFERPROC glMapBuffer;
|
||||
extern PFNGLUNMAPBUFFERPROC glUnmapBuffer;
|
||||
extern PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glCheckFramebufferStatusEXT;
|
||||
|
||||
namespace win32
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue