* commit 'b43a624544ccc5bef1d267d9d8a0dff9043a677c': EmuGL: set texture info from EGLImage
This commit is contained in:
@@ -1673,6 +1673,10 @@ GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOE
|
|||||||
ctx->dispatcher().glBindTexture(GL_TEXTURE_2D, img->globalTexName);
|
ctx->dispatcher().glBindTexture(GL_TEXTURE_2D, img->globalTexName);
|
||||||
TextureData *texData = getTextureTargetData(target);
|
TextureData *texData = getTextureTargetData(target);
|
||||||
SET_ERROR_IF(texData==NULL,GL_INVALID_OPERATION);
|
SET_ERROR_IF(texData==NULL,GL_INVALID_OPERATION);
|
||||||
|
texData->width = img->width;
|
||||||
|
texData->height = img->height;
|
||||||
|
texData->border = img->border;
|
||||||
|
texData->internalFormat = img->internalFormat;
|
||||||
texData->sourceEGLImage = (unsigned int)image;
|
texData->sourceEGLImage = (unsigned int)image;
|
||||||
texData->eglImageDetach = s_eglIface->eglDetachEGLImage;
|
texData->eglImageDetach = s_eglIface->eglDetachEGLImage;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user