Fixed sgl initialization on my laptop.
parent
8c68737f62
commit
4f0331f941
|
@ -19,7 +19,7 @@ struct AnimGraph {
|
|||
std::vector<std::vector<AnimGraphConnection> > m_node_input_connections;
|
||||
std::vector<std::vector<AnimGraphConnection> > m_node_output_connections;
|
||||
std::vector<AnimData*> m_animdata_blocks;
|
||||
NodeDescriptorBase* m_node_descriptor;
|
||||
NodeDescriptorBase* m_node_descriptor = nullptr;
|
||||
char* m_input_buffer = nullptr;
|
||||
char* m_output_buffer = nullptr;
|
||||
char* m_connection_data_storage = nullptr;
|
||||
|
|
|
@ -540,6 +540,7 @@ int main() {
|
|||
.sample_count = cMSAASampleCount,
|
||||
.logger = sokol_logger};
|
||||
sgl_setup(&sgldesc);
|
||||
sgl_defaults();
|
||||
|
||||
// sgl_context_desc_t sgl_context_desc = {};
|
||||
// sgl_context ctx = sgl_make_context(&sgl_context_desc);
|
||||
|
@ -1164,7 +1165,6 @@ int main() {
|
|||
ImGui::ShowDemoWindow();
|
||||
}
|
||||
|
||||
sgl_defaults();
|
||||
sg_begin_pass(offscreen_viewport.pass, &offscreen_viewport.pass_action);
|
||||
sgl_load_pipeline(offscreen_viewport.glpip);
|
||||
sgl_draw();
|
||||
|
|
Loading…
Reference in New Issue