mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] egl: remove texture->ops indirection
This commit is contained in:
@@ -29,17 +29,6 @@
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
|
||||
struct EGL_TextureOps;
|
||||
|
||||
typedef struct EGL_Texture
|
||||
{
|
||||
const struct EGL_TextureOps * ops;
|
||||
|
||||
// needed for dmabuf
|
||||
size_t size;
|
||||
}
|
||||
EGL_Texture;
|
||||
|
||||
typedef enum EGL_TexType
|
||||
{
|
||||
EGL_TEXTYPE_BUFFER,
|
||||
@@ -105,6 +94,8 @@ typedef struct EGL_TexUpdate
|
||||
}
|
||||
EGL_TexUpdate;
|
||||
|
||||
typedef struct EGL_Texture EGL_Texture;
|
||||
|
||||
typedef struct EGL_TextureOps
|
||||
{
|
||||
/* allocate & initialize an EGL_Texture */
|
||||
@@ -127,6 +118,14 @@ typedef struct EGL_TextureOps
|
||||
}
|
||||
EGL_TextureOps;
|
||||
|
||||
struct EGL_Texture
|
||||
{
|
||||
struct EGL_TextureOps ops;
|
||||
|
||||
// needed for dmabuf
|
||||
size_t size;
|
||||
};
|
||||
|
||||
bool egl_textureInit(EGL_Texture ** texture, EGLDisplay * display,
|
||||
EGL_TexType type, bool streaming);
|
||||
void egl_texture_free(EGL_Texture ** tex);
|
||||
|
Reference in New Issue
Block a user