Be prepared a renderer refuse to serve us/our GL view ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19467 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e2e290db9b
commit
a3d2f8eea7
@ -138,6 +138,11 @@ GLRendererRoster::CreateRenderer(const entry_ref& ref)
|
||||
B_SYMBOL_TYPE_TEXT, (void**)&instanc);
|
||||
if (status == B_OK) {
|
||||
BGLRenderer *renderer = instanc(fView, fOptions, new BGLDispatcher());
|
||||
if (!renderer) {
|
||||
unload_add_on(image);
|
||||
return B_UNSUPPORTED;
|
||||
}
|
||||
|
||||
if (AddRenderer(renderer, image, &ref, nodeRef.node) != B_OK) {
|
||||
renderer->Release();
|
||||
// this will delete the renderer
|
||||
|
Loading…
Reference in New Issue
Block a user