Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Drew DeVault
xserver
Commits
5cbb2a4c
Commit
5cbb2a4c
authored
Aug 11, 2011
by
Zhigang Gong
Committed by
Zhigang Gong
Sep 26, 2011
Browse files
glamor: Only fallbac glamor_setspan when we are using gles2.
Signed-off-by:
Zhigang Gong
<
zhigang.gong@gmail.com
>
parent
667d6553
Changes
1
Hide whitespace changes
Inline
Side-by-side
glamor/glamor_setspans.c
View file @
5cbb2a4c
...
...
@@ -36,6 +36,7 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
DDXPointPtr
points
,
int
*
widths
,
int
n
,
int
sorted
)
{
PixmapPtr
dest_pixmap
=
glamor_get_drawable_pixmap
(
drawable
);
glamor_screen_private
*
glamor_priv
;
GLenum
format
,
type
;
int
no_alpha
,
i
;
uint8_t
*
drawpixels_src
=
(
uint8_t
*
)
src
;
...
...
@@ -43,8 +44,10 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
BoxRec
*
pbox
;
int
x_off
,
y_off
;
glamor_priv
=
glamor_get_screen_private
(
drawable
->
pScreen
);
goto
fail
;
if
(
glamor_priv
->
gl_flavor
==
GLAMOR_GL_ES2
)
goto
fail
;
if
(
glamor_get_tex_format_type_from_pixmap
(
dest_pixmap
,
&
format
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment