Skip to content
This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Useless (unused) shader compiler #422

Open
stephomi opened this issue Sep 9, 2015 · 1 comment
Open

Useless (unused) shader compiler #422

stephomi opened this issue Sep 9, 2015 · 1 comment

Comments

@stephomi
Copy link
Collaborator

stephomi commented Sep 9, 2015

When we create a viewer, when the run() function is called, it creates a shader without material, triggered by

https://github.com/cedricpinson/osgjs/blob/develop/sources/osgViewer/Renderer.js#L193

The shader is not send to the cg and is not used, so it's not really a problem but maybe we can prevent the useless code execution

@stephomi
Copy link
Collaborator Author

if we comment the state.apply() from #399, it works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant