summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp3
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.h25
2 files changed, 13 insertions, 15 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index abbba13ee6..8e0b7bc9b8 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -2267,6 +2267,9 @@ void RasterizerStorageGLES3::light_set_negative(RID p_light, bool p_enable) {
void RasterizerStorageGLES3::light_set_cull_mask(RID p_light, uint32_t p_mask) {
}
+void RasterizerStorageGLES3::light_set_distance_fade(RID p_light, bool p_enabled, float p_begin, float p_shadow, float p_length) {
+}
+
void RasterizerStorageGLES3::light_set_reverse_cull_face_mode(RID p_light, bool p_enabled) {
}
diff --git a/drivers/gles3/rasterizer_storage_gles3.h b/drivers/gles3/rasterizer_storage_gles3.h
index b6a5c0e73e..64ed36ddd7 100644
--- a/drivers/gles3/rasterizer_storage_gles3.h
+++ b/drivers/gles3/rasterizer_storage_gles3.h
@@ -902,6 +902,7 @@ public:
void light_set_projector(RID p_light, RID p_texture) override;
void light_set_negative(RID p_light, bool p_enable) override;
void light_set_cull_mask(RID p_light, uint32_t p_mask) override;
+ void light_set_distance_fade(RID p_light, bool p_enabled, float p_begin, float p_shadow, float p_length) override;
void light_set_reverse_cull_face_mode(RID p_light, bool p_enabled) override;
void light_set_bake_mode(RID p_light, RS::LightBakeMode p_bake_mode) override;
void light_set_max_sdfgi_cascade(RID p_light, uint32_t p_cascade) override;
@@ -1168,27 +1169,21 @@ public:
int height = 0;
GLuint color = 0;
-
- Effect() {
- }
};
Effect copy_screen_effect;
struct MipMaps {
struct Size {
- GLuint fbo;
- GLuint color;
- int width;
- int height;
+ GLuint fbo = 0;
+ GLuint color = 0;
+ int width = 0;
+ int height = 0;
};
Vector<Size> sizes;
GLuint color = 0;
int levels = 0;
-
- MipMaps() {
- }
};
MipMaps mip_maps[2];
@@ -1198,14 +1193,14 @@ public:
GLuint color = 0;
GLuint depth = 0;
RID texture;
-
- External() {
- }
} external;
- int x = 0, y = 0, width = 0, height = 0;
+ int x = 0;
+ int y = 0;
+ int width = 0;
+ int height = 0;
- bool flags[RENDER_TARGET_FLAG_MAX];
+ bool flags[RENDER_TARGET_FLAG_MAX] = {};
// instead of allocating sized render targets immediately,
// defer this for faster startup