Use eglGetProcAddress() for all GLES 2.0 extensions
This commit is contained in:
parent
4b7b01ce0a
commit
26c9ad7f06
3 changed files with 54 additions and 24 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
#include "renderer.h"
|
||||
|
||||
#include <SDL_opengles2.h>
|
||||
#include <SDL_opengles2_gl2ext.h>
|
||||
|
||||
class EGLRenderer : public IFFmpegRenderer {
|
||||
public:
|
||||
EGLRenderer(IFFmpegRenderer *backendRenderer);
|
||||
|
|
@ -13,7 +16,6 @@ public:
|
|||
virtual bool isPixelFormatSupported(int videoFormat, enum AVPixelFormat pixelFormat) override;
|
||||
|
||||
private:
|
||||
using EGLImageTargetTexture2DOES_t = void (*)(int, void *);
|
||||
|
||||
bool compileShader();
|
||||
bool specialize();
|
||||
|
|
@ -30,6 +32,10 @@ private:
|
|||
unsigned int m_VAO;
|
||||
int m_ColorSpace;
|
||||
bool m_ColorFull;
|
||||
EGLImageTargetTexture2DOES_t EGLImageTargetTexture2DOES;
|
||||
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC m_glEGLImageTargetTexture2DOES;
|
||||
PFNGLGENVERTEXARRAYSOESPROC m_glGenVertexArraysOES;
|
||||
PFNGLBINDVERTEXARRAYOESPROC m_glBindVertexArrayOES;
|
||||
PFNGLDELETEVERTEXARRAYSOESPROC m_glDeleteVertexArraysOES;
|
||||
|
||||
SDL_Renderer *m_DummyRenderer;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue