summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Davy <axel.davy@ens.fr>2016-01-26 16:40:30 +0100
committerAxel Davy <axel.davy@ens.fr>2016-02-04 22:12:17 +0100
commit6b12fe77ea7bbd8f159c0902a7c1d4ab22d4629c (patch)
treef16a92222fc2e2a36dd29a1db93eafcd254c29e3
parent24ddadbba9ddfde579cc4cc65f58b063122b8d02 (diff)
st/nine: Disallow non-argb8888 cursors
Only argb8888 cursors are allowed. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
-rw-r--r--src/gallium/state_trackers/nine/device9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c
index 17a8b60dfd..475ef96788 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -629,6 +629,7 @@ NineDevice9_SetCursorProperties( struct NineDevice9 *This,
"pCursorBitmap=%p\n", This, XHotSpot, YHotSpot, pCursorBitmap);
user_assert(pCursorBitmap, D3DERR_INVALIDCALL);
+ user_assert(surf->desc.Format == D3DFMT_A8R8G8B8, D3DERR_INVALIDCALL);
if (This->swapchains[0]->params.Windowed) {
This->cursor.w = MIN2(surf->desc.Width, 32);