mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] egl: assert the update provdided is a dmabuf
This commit is contained in:
parent
f3413815a9
commit
4d9ab81ef4
@ -21,6 +21,8 @@
|
|||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
#include "texture_buffer.h"
|
#include "texture_buffer.h"
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
#include "egl_dynprocs.h"
|
#include "egl_dynprocs.h"
|
||||||
#include "egldebug.h"
|
#include "egldebug.h"
|
||||||
|
|
||||||
@ -131,6 +133,7 @@ static bool eglTexDMABUF_update(EGL_Texture * texture,
|
|||||||
{
|
{
|
||||||
TextureBuffer * parent = UPCAST(TextureBuffer, texture);
|
TextureBuffer * parent = UPCAST(TextureBuffer, texture);
|
||||||
TexDMABUF * this = UPCAST(TexDMABUF , parent);
|
TexDMABUF * this = UPCAST(TexDMABUF , parent);
|
||||||
|
assert(update->type == EGL_TEXTYPE_DMABUF);
|
||||||
|
|
||||||
EGLImage image = EGL_NO_IMAGE;
|
EGLImage image = EGL_NO_IMAGE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user