diff options
| author | Andreas Haas | 2017-04-15 15:52:26 +0200 |
|---|---|---|
| committer | GitHub | 2017-04-15 15:52:26 +0200 |
| commit | e55a496f79e80f9ab08c96bf0f74c565203758bb (patch) | |
| tree | 9f202eb67e55db8328691529c04ff5e55786c09f | |
| parent | b7ce1601a373347c617b09b5461bda4112f9855f (diff) | |
| parent | 3e0f8bb254edf0669fd63745b939da87868ddf78 (diff) | |
| download | godot-e55a496f79e80f9ab08c96bf0f74c565203758bb.tar.gz godot-e55a496f79e80f9ab08c96bf0f74c565203758bb.tar.zst godot-e55a496f79e80f9ab08c96bf0f74c565203758bb.zip | |
| -rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index beed923a5..9316b025e 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -5534,7 +5534,7 @@ void RasterizerStorageGLES3::_render_target_allocate(RenderTarget *rt) { glGenTextures(1, &rt->depth); glBindTexture(GL_TEXTURE_2D, rt->depth); glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, rt->width, rt->height, 0, - GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, NULL); + GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, NULL); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); @@ -6500,7 +6500,7 @@ void RasterizerStorageGLES3::initialize() { frame.count = 0; frame.prev_tick = 0; frame.delta = 0; - frame.current_rt=NULL; + frame.current_rt = NULL; config.keep_original_textures = false; } |
