Skip to content

Conversation

@caiiiycuk
Copy link
Contributor

No description provided.

@caiiiycuk caiiiycuk changed the title remove throw; workaround for rv_api_1 render-ng: web version Jan 31, 2022
@caiiiycuk
Copy link
Contributor Author

Я пробавл передлеать на ErrH.Abort ну тогда приходится вводить зависиомть от xtcore (errorhandler) незнаю есть ли в этом смысл.

Copy link
Contributor

@lpenguin lpenguin left a 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


if(it == _storage.end()){
throw ResourceDoesNotExistsException (rid);
printf("Resource does not exists %d\n", rid);
Copy link
Contributor

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());
Copy link
Contributor

@lpenguin lpenguin Feb 1, 2022

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;

@caiiiycuk caiiiycuk marked this pull request as draft February 1, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants