[VITA] Initialize vita2d_texture to 0

This commit is contained in:
Francisco José García García 2019-07-24 09:27:02 +02:00
parent 98ecdd9510
commit c9f3446a90

View File

@ -61,6 +61,8 @@ static vita2d_texture *_vita2d_create_empty_texture_format_advanced(unsigned int
if (!texture)
return NULL;
memset(texture, 0, sizeof(vita2d_texture));
const int tex_size = w * h * tex_format_to_bytespp(format);
/* Allocate a GPU buffer for the texture */