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:
Philippe Houdoin 2006-12-12 01:40:38 +00:00
parent e2e290db9b
commit a3d2f8eea7

View File

@ -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