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
Jian-Hong Pan
xserver
Commits
5f8a24fd
Commit
5f8a24fd
authored
Oct 29, 2009
by
Jesse Barnes
Browse files
Fixup validDrawable usage
parent
da795f5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/xfree86/dri2/dri2ext.c
View file @
5f8a24fd
...
...
@@ -353,7 +353,8 @@ ProcDRI2SwapBuffers(ClientPtr client)
REQUEST_SIZE_MATCH
(
xDRI2SwapBuffersReq
);
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
&
pDrawable
,
&
status
))
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
DixReadAccess
|
DixWriteAccess
,
&
pDrawable
,
&
status
))
return
status
;
target_msc
=
vals_to_card64
(
stuff
->
target_msc_lo
,
stuff
->
target_msc_hi
);
...
...
@@ -397,7 +398,8 @@ ProcDRI2GetMSC(ClientPtr client)
REQUEST_SIZE_MATCH
(
xDRI2GetMSCReq
);
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
&
pDrawable
,
&
status
))
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
DixReadAccess
,
&
pDrawable
,
&
status
))
return
status
;
status
=
DRI2GetMSC
(
pDrawable
,
&
ust
,
&
msc
,
&
sbc
);
...
...
@@ -426,7 +428,8 @@ ProcDRI2WaitMSC(ClientPtr client)
REQUEST_SIZE_MATCH
(
xDRI2WaitMSCReq
);
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
&
pDrawable
,
&
status
))
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
DixReadAccess
,
&
pDrawable
,
&
status
))
return
status
;
target
=
vals_to_card64
(
stuff
->
target_msc_lo
,
stuff
->
target_msc_hi
);
...
...
@@ -466,7 +469,8 @@ ProcDRI2WaitSBC(ClientPtr client)
REQUEST_SIZE_MATCH
(
xDRI2WaitSBCReq
);
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
&
pDrawable
,
&
status
))
if
(
!
validDrawable
(
client
,
stuff
->
drawable
,
DixReadAccess
,
&
pDrawable
,
&
status
))
return
status
;
target
=
vals_to_card64
(
stuff
->
target_sbc_lo
,
stuff
->
target_sbc_hi
);
...
...
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