Fixed sgl initialization on my laptop.

RefactorUnifiedBlendTreeStateMachineHandling
Martin Felis 2023-04-21 13:16:04 +02:00
parent 8c68737f62
commit 4f0331f941
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ struct AnimGraph {
std::vector<std::vector<AnimGraphConnection> > m_node_input_connections; std::vector<std::vector<AnimGraphConnection> > m_node_input_connections;
std::vector<std::vector<AnimGraphConnection> > m_node_output_connections; std::vector<std::vector<AnimGraphConnection> > m_node_output_connections;
std::vector<AnimData*> m_animdata_blocks; std::vector<AnimData*> m_animdata_blocks;
NodeDescriptorBase* m_node_descriptor; NodeDescriptorBase* m_node_descriptor = nullptr;
char* m_input_buffer = nullptr; char* m_input_buffer = nullptr;
char* m_output_buffer = nullptr; char* m_output_buffer = nullptr;
char* m_connection_data_storage = nullptr; char* m_connection_data_storage = nullptr;

View File

@ -540,6 +540,7 @@ int main() {
.sample_count = cMSAASampleCount, .sample_count = cMSAASampleCount,
.logger = sokol_logger}; .logger = sokol_logger};
sgl_setup(&sgldesc); sgl_setup(&sgldesc);
sgl_defaults();
// sgl_context_desc_t sgl_context_desc = {}; // sgl_context_desc_t sgl_context_desc = {};
// sgl_context ctx = sgl_make_context(&sgl_context_desc); // sgl_context ctx = sgl_make_context(&sgl_context_desc);
@ -1164,7 +1165,6 @@ int main() {
ImGui::ShowDemoWindow(); ImGui::ShowDemoWindow();
} }
sgl_defaults();
sg_begin_pass(offscreen_viewport.pass, &offscreen_viewport.pass_action); sg_begin_pass(offscreen_viewport.pass, &offscreen_viewport.pass_action);
sgl_load_pipeline(offscreen_viewport.glpip); sgl_load_pipeline(offscreen_viewport.glpip);
sgl_draw(); sgl_draw();