Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
obs-studio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yunxiang Li
obs-studio
Commits
7dfb26eb
Commit
7dfb26eb
authored
10 years ago
by
Jim
Browse files
Options
Downloads
Patches
Plain Diff
Reset blend state to default after drawing
parent
57cfd4f9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plugins/linux-xcomposite/xcompcap-main.cpp
+2
-0
2 additions, 0 deletions
plugins/linux-xcomposite/xcompcap-main.cpp
plugins/linux-xshm/xcursor.c
+0
-1
0 additions, 1 deletion
plugins/linux-xshm/xcursor.c
plugins/linux-xshm/xshm-input.c
+2
-0
2 additions, 0 deletions
plugins/linux-xshm/xshm-input.c
with
4 additions
and
1 deletion
plugins/linux-xcomposite/xcompcap-main.cpp
+
2
−
0
View file @
7dfb26eb
...
...
@@ -442,6 +442,8 @@ void XCompcapMain::render(effect_t effect)
gs_enable_blending
(
false
);
gs_draw_sprite
(
p
->
tex
,
0
,
0
,
0
);
gs_reset_blend_state
();
}
uint32_t
XCompcapMain
::
width
()
...
...
This diff is collapsed.
Click to expand it.
plugins/linux-xshm/xcursor.c
+
0
−
1
View file @
7dfb26eb
...
...
@@ -105,7 +105,6 @@ void xcursor_render(xcursor_t *data) {
gs_enable_blending
(
True
);
gs_blendfunction
(
GS_BLEND_ONE
,
GS_BLEND_INVSRCALPHA
);
gs_draw_sprite
(
data
->
tex
,
0
,
0
,
0
);
gs_enable_blending
(
False
);
gs_matrix_pop
();
}
...
...
This diff is collapsed.
Click to expand it.
plugins/linux-xshm/xshm-input.c
+
2
−
0
View file @
7dfb26eb
...
...
@@ -275,6 +275,8 @@ static void xshm_video_render(void *vptr, effect_t effect)
if
(
data
->
show_cursor
)
xcursor_render
(
data
->
cursor
);
gs_reset_blend_state
();
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment