summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-08-07 08:10:38 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-07 08:10:38 +0200
commit4aefe679119bacc14e70ead920273675cab31c92 (patch)
tree01579e8b6ca9bb376edbdae4a3107dc188e5e804
parent468bb10b87cbb02ae8c38c39412dbd00d4b4a9f4 (diff)
Fix vbo format issue in etna_screen_is_format_supported
I don't know if this will have any effect but the check was clearly the wrong way around. Thanks to imirkin on IRC for noticing this.
-rw-r--r--src/driver/etna_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/etna_screen.c b/src/driver/etna_screen.c
index e86025e..704ac8f 100644
--- a/src/driver/etna_screen.c
+++ b/src/driver/etna_screen.c
@@ -395,7 +395,7 @@ static boolean etna_screen_is_format_supported( struct pipe_screen *screen,
if (usage & PIPE_BIND_VERTEX_BUFFER)
{
/* must be supported vertex format */
- if(translate_vertex_format_type(format, true) == ETNA_NO_MATCH)
+ if(translate_vertex_format_type(format, true) != ETNA_NO_MATCH)
{
allowed |= PIPE_BIND_VERTEX_BUFFER;
}