-Fix eternal black screen on Windows
-Disabled warnings on windows, need to properly set up warnings
This commit is contained in:
parent
2cca9b0631
commit
fccf2816d4
6 changed files with 10 additions and 6 deletions
|
@ -275,7 +275,7 @@ if selected_platform in platform_list:
|
|||
# TODO: Add support to specify different levels of warning, e.g. only critical/significant, instead of on/off
|
||||
if (env["warnings"] == "yes"):
|
||||
if (os.name == "nt" and os.getenv("VSINSTALLDIR")): # MSVC, needs to stand out of course
|
||||
env.Append(CCFLAGS=['/W4'])
|
||||
pass# env.Append(CCFLAGS=['/W2'])
|
||||
else: # Rest of the world
|
||||
env.Append(CCFLAGS=['-Wall'])
|
||||
else:
|
||||
|
|
|
@ -5533,7 +5533,7 @@ void RasterizerStorageGLES3::_render_target_allocate(RenderTarget *rt) {
|
|||
|
||||
glGenTextures(1, &rt->depth);
|
||||
glBindTexture(GL_TEXTURE_2D, rt->depth);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, rt->width, rt->height, 0,
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, rt->width, rt->height, 0,
|
||||
GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, NULL);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
|
|
|
@ -4862,9 +4862,9 @@ EditorNode::EditorNode() {
|
|||
import_wav.instance();
|
||||
ResourceFormatImporter::get_singleton()->add_importer(import_wav);
|
||||
|
||||
Ref<ResourceImporterOBJ> import_obj;
|
||||
import_obj.instance();
|
||||
ResourceFormatImporter::get_singleton()->add_importer(import_obj);
|
||||
//Ref<ResourceImporterOBJ> import_obj;
|
||||
//import_obj.instance();
|
||||
//ResourceFormatImporter::get_singleton()->add_importer(import_obj);
|
||||
|
||||
Ref<ResourceImporterScene> import_scene;
|
||||
import_scene.instance();
|
||||
|
|
|
@ -242,7 +242,7 @@ def configure(env):
|
|||
env.Append(LINKFLAGS=['/SUBSYSTEM:CONSOLE'])
|
||||
env.Append(LINKFLAGS=['/DEBUG'])
|
||||
|
||||
env.Append(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
|
||||
env.Append(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
|
||||
env.Append(CXXFLAGS=['/TP'])
|
||||
env.Append(CPPFLAGS=['/DMSVC', '/GR', ])
|
||||
env.Append(CCFLAGS=['/I' + os.getenv("WindowsSdkDir") + "/Include"])
|
||||
|
|
|
@ -886,6 +886,7 @@ public:
|
|||
};
|
||||
|
||||
virtual void canvas_begin() = 0;
|
||||
virtual void canvas_end() = 0;
|
||||
|
||||
virtual void canvas_render_items(Item *p_item_list, int p_z, const Color &p_modulate, Light *p_light) = 0;
|
||||
virtual void canvas_debug_viewport_shadows(Light *p_lights_with_shadow) = 0;
|
||||
|
|
|
@ -231,6 +231,9 @@ void VisualServerCanvas::render_canvas(Canvas *p_canvas, const Transform2D &p_tr
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
VSG::canvas_render->canvas_end();
|
||||
|
||||
}
|
||||
|
||||
RID VisualServerCanvas::canvas_create() {
|
||||
|
|
Loading…
Reference in a new issue