glamor: Fix a mismatched glamor_get/put_context().
We don't call GL in this function any more, so we can just drop the get. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Markus Wick <markus at selfnet.de>
This commit is contained in:
parent
bd09292deb
commit
25be6b3842
@ -46,8 +46,6 @@ static const char *
|
|||||||
_glamor_create_getcolor_fs_source(ScreenPtr screen, int stops_count,
|
_glamor_create_getcolor_fs_source(ScreenPtr screen, int stops_count,
|
||||||
int use_array)
|
int use_array)
|
||||||
{
|
{
|
||||||
glamor_screen_private *glamor_priv;
|
|
||||||
|
|
||||||
char *gradient_fs = NULL;
|
char *gradient_fs = NULL;
|
||||||
|
|
||||||
#define gradient_fs_getcolor\
|
#define gradient_fs_getcolor\
|
||||||
@ -174,9 +172,6 @@ _glamor_create_getcolor_fs_source(ScreenPtr screen, int stops_count,
|
|||||||
" return gradient_color;\n"
|
" return gradient_color;\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
glamor_priv = glamor_get_screen_private(screen);
|
|
||||||
glamor_get_context(glamor_priv);
|
|
||||||
|
|
||||||
if (use_array) {
|
if (use_array) {
|
||||||
XNFasprintf(&gradient_fs,
|
XNFasprintf(&gradient_fs,
|
||||||
gradient_fs_getcolor, stops_count, stops_count);
|
gradient_fs_getcolor, stops_count, stops_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user