mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Add support for EXT_buffer_storage
This commit is contained in:
parent
c2b3fc13eb
commit
4a7c1ebf04
|
@ -253,6 +253,10 @@ void initGLFunctions()
|
|||
GL_GET_PROC_ADR(PFNGLGETSTRINGIPROC, glGetStringi);
|
||||
GL_GET_PROC_ADR(PFNGLINVALIDATEFRAMEBUFFERPROC, glInvalidateFramebuffer);
|
||||
GL_GET_PROC_ADR(PFNGLBUFFERSTORAGEPROC, glBufferStorage);
|
||||
#ifdef EGL
|
||||
if (g_glBufferStorage == nullptr)
|
||||
g_glBufferStorage = (PFNGLBUFFERSTORAGEPROC) eglGetProcAddress("glBufferStorageEXT");
|
||||
#endif
|
||||
GL_GET_PROC_ADR(PFNGLFENCESYNCPROC, glFenceSync);
|
||||
GL_GET_PROC_ADR(PFNGLCLIENTWAITSYNCPROC, glClientWaitSync);
|
||||
GL_GET_PROC_ADR(PFNGLDELETESYNCPROC, glDeleteSync);
|
||||
|
|
|
@ -274,7 +274,7 @@ graphics::ColorBufferReader * ContextImpl::createColorBufferReader(CachedTexture
|
|||
return new ColorBufferReaderWithEGLImage(_pTexture, m_cachedFunctions->getCachedBindTexture());
|
||||
#endif*/
|
||||
|
||||
if (Utils::isExtensionSupported("GL_ARB_buffer_storage"))
|
||||
if (Utils::isExtensionSupported("GL_ARB_buffer_storage") || Utils::isExtensionSupported("GL_EXT_buffer_storage"))
|
||||
return new ColorBufferReaderWithBufferStorage(_pTexture, m_cachedFunctions->getCachedBindBuffer());
|
||||
|
||||
return new ColorBufferReaderWithPixelBuffer(_pTexture, m_cachedFunctions->getCachedBindBuffer());
|
||||
|
|
Loading…
Reference in New Issue
Block a user