[client] egl: assert the update provdided is a dmabuf

This commit is contained in:
Geoffrey McRae 2021-08-03 04:03:37 +10:00
parent f3413815a9
commit 4d9ab81ef4

View File

@ -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;