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
ab8f3d78
Commit
ab8f3d78
authored
Feb 24, 2019
by
Juan Linietsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with buffers being wrongly cleared, closes #25484
parent
4ebb544f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
rasterizer_storage_gles2.cpp
drivers/gles2/rasterizer_storage_gles2.cpp
+7
-0
No files found.
drivers/gles2/rasterizer_storage_gles2.cpp
View file @
ab8f3d78
...
...
@@ -1028,6 +1028,11 @@ void RasterizerStorageGLES2::sky_set_texture(RID p_sky, RID p_panorama, int p_ra
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
glFramebufferTexture2D
(
GL_FRAMEBUFFER
,
GL_COLOR_ATTACHMENT0
,
_cube_side_enum
[
i
],
sky
->
radiance
,
lod
);
GLenum
status
=
glCheckFramebufferStatus
(
GL_FRAMEBUFFER
);
if
(
status
!=
GL_FRAMEBUFFER_COMPLETE
)
{
break
;
//may be too small
}
glViewport
(
0
,
0
,
size
,
size
);
bind_quad_array
();
...
...
@@ -2209,6 +2214,8 @@ void RasterizerStorageGLES2::mesh_add_surface(RID p_mesh, uint32_t p_format, VS:
glBindBuffer
(
GL_ELEMENT_ARRAY_BUFFER
,
surface
->
index_id
);
glBufferData
(
GL_ELEMENT_ARRAY_BUFFER
,
index_array_size
,
ir
.
ptr
(),
GL_STATIC_DRAW
);
glBindBuffer
(
GL_ELEMENT_ARRAY_BUFFER
,
0
);
}
else
{
surface
->
index_id
=
0
;
}
// TODO generate wireframes
...
...
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