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
2ebc783e
Unverified
Commit
2ebc783e
authored
Dec 09, 2019
by
Rémi Verschelde
Committed by
GitHub
Dec 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34218 from akien-mga/gles3-unbind-buffers
GLES3: Properly unbind buffers after draw commands
parents
e447f5ab
cd07a345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
rasterizer_canvas_gles3.cpp
drivers/gles3/rasterizer_canvas_gles3.cpp
+3
-0
No files found.
drivers/gles3/rasterizer_canvas_gles3.cpp
View file @
2ebc783e
...
...
@@ -419,6 +419,7 @@ void RasterizerCanvasGLES3::_draw_polygon(const int *p_indices, int p_index_coun
}
glBindVertexArray
(
0
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
0
);
}
void
RasterizerCanvasGLES3
::
_draw_generic
(
GLuint
p_primitive
,
int
p_vertex_count
,
const
Vector2
*
p_vertices
,
const
Vector2
*
p_uvs
,
const
Color
*
p_colors
,
bool
p_singlecolor
)
{
...
...
@@ -471,6 +472,7 @@ void RasterizerCanvasGLES3::_draw_generic(GLuint p_primitive, int p_vertex_count
storage
->
frame
.
canvas_draw_commands
++
;
glBindVertexArray
(
0
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
0
);
}
void
RasterizerCanvasGLES3
::
_draw_generic_indices
(
GLuint
p_primitive
,
const
int
*
p_indices
,
int
p_index_count
,
int
p_vertex_count
,
const
Vector2
*
p_vertices
,
const
Vector2
*
p_uvs
,
const
Color
*
p_colors
,
bool
p_singlecolor
)
{
...
...
@@ -543,6 +545,7 @@ void RasterizerCanvasGLES3::_draw_generic_indices(GLuint p_primitive, const int
storage
->
frame
.
canvas_draw_commands
++
;
glBindVertexArray
(
0
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
0
);
}
void
RasterizerCanvasGLES3
::
_draw_gui_primitive
(
int
p_points
,
const
Vector2
*
p_vertices
,
const
Color
*
p_colors
,
const
Vector2
*
p_uvs
)
{
...
...
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