Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Drew DeVault
xserver
Commits
8593f22f
Commit
8593f22f
authored
May 19, 2011
by
Zhigang Gong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glamor: glamor_set_alu should enable GL_COLOR_LOGIC_OP.
GL_COLOR_OP seems not supported in current MESA.
parent
f871d174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
glamor/glamor_core.c
glamor/glamor_core.c
+6
-8
No files found.
glamor/glamor_core.c
View file @
8593f22f
...
...
@@ -117,12 +117,10 @@ void
glamor_set_alu
(
unsigned
char
alu
)
{
if
(
alu
==
GXcopy
)
{
glDisable
(
GL_LOGIC_OP
);
glDisable
(
GL_
COLOR_
LOGIC_OP
);
return
;
}
glEnable
(
GL_LOGIC_OP
);
glEnable
(
GL_COLOR_LOGIC_OP
);
switch
(
alu
)
{
case
GXclear
:
glLogicOp
(
GL_CLEAR
);
...
...
@@ -271,10 +269,10 @@ glamor_get_color_4f_from_pixel(PixmapPtr pixmap, unsigned long fg_pixel,
break
;
case
24
:
case
32
:
color
[
0
]
=
ubyte_to_float
(
fg_pixel
>>
16
);
color
[
1
]
=
ubyte_to_float
(
fg_pixel
>>
8
);
color
[
2
]
=
ubyte_to_float
(
fg_pixel
>>
0
);
color
[
3
]
=
ubyte_to_float
(
fg_pixel
>>
24
);
color
[
0
]
=
ubyte_to_float
(
(
fg_pixel
>>
16
)
&
0xFF
);
color
[
1
]
=
ubyte_to_float
(
(
fg_pixel
>>
8
)
&
0xFF
);
color
[
2
]
=
ubyte_to_float
(
(
fg_pixel
>>
0
)
&
0xFF
);
color
[
3
]
=
ubyte_to_float
(
(
fg_pixel
>>
24
)
&
0xFF
);
break
;
default:
ErrorF
(
"pixmap with bad depth: %d
\n
"
,
pixmap
->
drawable
.
depth
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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