Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8f93c315 authored by TAVERNIER Vincent's avatar TAVERNIER Vincent
Browse files

Fix example50 program dumping

parent c54b682f
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,9 @@ int render(GLFWwindow* window, shadertoy::context_config &contextConfig, bool du ...@@ -101,7 +101,9 @@ int render(GLFWwindow* window, shadertoy::context_config &contextConfig, bool du
u::log::shadertoy()->info("Dumping {} to {}", bufferConfig.first, dumpPath); u::log::shadertoy()->info("Dumping {} to {}", bufferConfig.first, dumpPath);
std::ofstream ofs(dumpPath.string()); std::ofstream ofs(dumpPath.string());
auto dump(shadertoy::utils::dump_program(context.buffer(bufferConfig.first)->program())); auto dump(shadertoy::utils::dump_program(
std::static_pointer_cast<shadertoy::toy_buffer>(context.buffer(bufferConfig.first))
->program()));
ofs.write(dump.data(), dump.size()); ofs.write(dump.data(), dump.size());
ofs.close(); ofs.close();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment