Skip to content
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

Draft
wants to merge 2 commits into
base: renderer-ng
Choose a base branch
from
Draft

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

@@ -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);
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.

None yet

2 participants