Forgot this code

This commit is contained in:
korenkonder
2024-06-16 23:48:43 +03:00
parent 2298a05217
commit be45a4534b
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1491,7 +1491,7 @@ void EffectRipple::draw() {
glClearDLL(GL_DEPTH_BUFFER_BIT);
if (disp_manager->get_obj_count(mdl::OBJ_TYPE_USER)) {
gl_state_active_bind_texture_2d(7, rt[counter % 3]->GetColorTex());
disp_manager->draw(mdl::OBJ_TYPE_USER, 0, true);
disp_manager->draw(mdl::OBJ_TYPE_USER);
gl_state_active_bind_texture_2d(7, 0);
}
+2 -2
View File
@@ -1971,7 +1971,7 @@ namespace mdl {
i.reset_vertex_attrib();
}
void DispManager::draw(ObjType type, int32_t depth_mask, bool a4) {
void DispManager::draw(ObjType type, int32_t depth_mask, bool reflect_texture_mask) {
if (type < 0 || type >= mdl::OBJ_TYPE_LOCAL_MAX || get_obj_count(type) < 1)
return;
@@ -2057,7 +2057,7 @@ namespace mdl {
break;
case OBJ_TYPE_REFLECT_OPAQUE:
alpha_test = 1;
if (!a4)
if (!reflect_texture_mask)
func = draw_sub_mesh_reflect_reflect_map;
break;
case OBJ_TYPE_REFLECT_TRANSLUCENT:
+1 -1
View File
@@ -449,7 +449,7 @@ namespace mdl {
void check_index_buffer(GLuint buffer);
void check_vertex_arrays();
void check_vertex_buffer(GLuint buffer);
void draw(mdl::ObjType type, int32_t depth_mask = 0, bool a4 = true);
void draw(mdl::ObjType type, int32_t depth_mask = 0, bool reflect_texture_mask = true);
void draw_translucent(mdl::ObjType type, int32_t alpha);
/*void draw_show_vector(mdl::ObjType type, int32_t show_vector);*/
void entry_list(ObjType type, ObjData* data);