OSDN Git Service

st/nine: Do not set SHARED flag for shared textures.
authorAxel Davy <axel.davy@ens.fr>
Tue, 26 Jan 2016 16:04:21 +0000 (17:04 +0100)
committerAxel Davy <axel.davy@ens.fr>
Fri, 12 Feb 2016 22:26:36 +0000 (23:26 +0100)
We do not support shared textures, thus no need to set
the shared flag.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/texture9.c

index a11dad4..6d1f897 100644 (file)
@@ -140,9 +140,6 @@ NineTexture9_ctor( struct NineTexture9 *This,
         DBG("Application asked for Software Vertex Processing, "
             "but this is unimplemented\n");
 
-    if (pSharedHandle)
-        info->bind |= PIPE_BIND_SHARED;
-
     if (pSharedHandle && *pSharedHandle) { /* Pool == D3DPOOL_SYSTEMMEM */
         user_buffer = (void *)*pSharedHandle;
         level_offsets = alloca(sizeof(unsigned) * (info->last_level + 1));