[Mesa-dev] [PATCH 09/22] st/nine: Initialize manually cursor structure
Axel Davy
davyaxel0 at gmail.com
Sun Sep 23 17:00:14 UTC 2018
Initialize manually the cursor structure fields
for more clarity on its content.
Signed-off-by: Axel Davy <davyaxel0 at gmail.com>
---
src/gallium/state_trackers/nine/device9.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c
index 293f63bd7b7..9bb97bdf9c3 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -331,6 +331,10 @@ NineDevice9_ctor( struct NineDevice9 *This,
This->cursor.software = FALSE;
This->cursor.hotspot.x = -1;
This->cursor.hotspot.y = -1;
+ This->cursor.w = This->cursor.h = 0;
+ This->cursor.visible = FALSE;
+ This->cursor.pos.x = 0;
+ This->cursor.pos.y = 0;
{
struct pipe_resource tmpl;
memset(&tmpl, 0, sizeof(tmpl));
--
2.18.0
More information about the mesa-dev
mailing list