Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
4b562aaf
Unverified
Commit
4b562aaf
authored
Feb 20, 2018
by
Rémi Verschelde
Committed by
GitHub
Feb 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16834 from bojidar-bg/x-rendering-gles3-bug
Fix a rendering bug with screen_texture
parents
55f00d96
ea57a19b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
rasterizer_canvas_gles3.cpp
drivers/gles3/rasterizer_canvas_gles3.cpp
+4
-6
No files found.
drivers/gles3/rasterizer_canvas_gles3.cpp
View file @
4b562aaf
...
...
@@ -993,13 +993,11 @@ void RasterizerCanvasGLES3::_copy_texscreen(const Rect2 &p_rect) {
glBindFramebuffer
(
GL_FRAMEBUFFER
,
storage
->
frame
.
current_rt
->
fbo
);
//back to front
glViewport
(
0
,
0
,
storage
->
frame
.
current_rt
->
width
,
storage
->
frame
.
current_rt
->
height
);
state
.
canvas_shader
.
bind
();
//back to canvas
_bind_canvas_texture
(
state
.
current_tex
,
state
.
current_normal
);
// back to canvas, force rebind
state
.
using_texture_rect
=
true
;
_set_texture_rect_mode
(
false
);
if
(
state
.
using_texture_rect
)
{
state
.
using_texture_rect
=
false
;
_set_texture_rect_mode
(
state
.
using_texture_rect
,
state
.
using_ninepatch
);
}
_bind_canvas_texture
(
state
.
current_tex
,
state
.
current_normal
);
glEnable
(
GL_BLEND
);
}
...
...
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