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

Fixed material management #168

Merged
merged 2 commits into from
May 15, 2017
Merged

Fixed material management #168

merged 2 commits into from
May 15, 2017

Conversation

favreau
Copy link
Member

@favreau favreau commented May 11, 2017

Until now, a fixed number of materials was initialized at application start-up. The whole material management has been revisited to allow a dynamic number of elements.

@favreau favreau force-pushed the master branch 2 times, most recently from a8d17e1 to 9a4c7c3 Compare May 12, 2017 11:59
@@ -284,15 +283,15 @@ struct Histogram
/** Some 'special' materials are used by Brayns to acomplish specific features
* such as skyboxes.
*/
const size_t DEFAULT_NB_MATERIALS = 200;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm

_ospMaterialData = 0;

// Determine how many materials need to be created
size_t maxId = -std::numeric_limits<size_t>::max();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't be min? -max for unsigned overflows to 0 or 1, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hum... yes, 0, definitely :-) Thanks

@favreau favreau merged commit fdc6aa1 into BlueBrain:master May 15, 2017
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