-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render-ng: web version #540
base: renderer-ng
Are you sure you want to change the base?
Conversation
Я пробавл передлеать на ErrH.Abort ну тогда приходится вводить зависиомть от xtcore (errorhandler) незнаю есть ли в этом смысл. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change all printf
with std::cout
? I've marked several places
@@ -69,7 +69,8 @@ namespace renderer { | |||
iterator it = _storage.find(rid); | |||
|
|||
if(it == _storage.end()){ | |||
throw ResourceDoesNotExistsException (rid); | |||
printf("Resource does not exists %d\n", rid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use cout here, like
std::cout << "Resource does not exists " << rid << std::endl;`
gl_error = glGetError(); | ||
if(gl_error != 0){ | ||
throw CompositorException(std::string("glBindTexture error: ") + std::to_string(gl_error)); | ||
printf("%s\n", (std::string("glBindTexture error: ") + std::to_string(gl_error)).c_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with
std::cout << "glBindTexture error: " << gl_error << std::endl;
No description provided.