use xzalloc wrapper instead
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
3c946779df
commit
5cda4e328d
+2
-2
@@ -844,7 +844,7 @@ static void
|
|||||||
blit_surface_init(struct nested_surface *surface)
|
blit_surface_init(struct nested_surface *surface)
|
||||||
{
|
{
|
||||||
struct nested_blit_surface *blit_surface =
|
struct nested_blit_surface *blit_surface =
|
||||||
zalloc(sizeof *blit_surface);
|
xzalloc(sizeof *blit_surface);
|
||||||
|
|
||||||
glGenTextures(1, &blit_surface->texture);
|
glGenTextures(1, &blit_surface->texture);
|
||||||
glBindTexture(GL_TEXTURE_2D, blit_surface->texture);
|
glBindTexture(GL_TEXTURE_2D, blit_surface->texture);
|
||||||
@@ -967,7 +967,7 @@ ss_surface_init(struct nested_surface *surface)
|
|||||||
struct wl_compositor *compositor =
|
struct wl_compositor *compositor =
|
||||||
display_get_compositor(nested->display);
|
display_get_compositor(nested->display);
|
||||||
struct nested_ss_surface *ss_surface =
|
struct nested_ss_surface *ss_surface =
|
||||||
zalloc(sizeof *ss_surface);
|
xzalloc(sizeof *ss_surface);
|
||||||
struct rectangle allocation;
|
struct rectangle allocation;
|
||||||
struct wl_region *region;
|
struct wl_region *region;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user