opengl add-ons: Style cleanup
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku. All rights reserved.
|
||||
* Copyright 2006-2012 Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Screen.h>
|
||||
#include <GLRenderer.h>
|
||||
|
||||
|
||||
extern "C" _EXPORT BGLRenderer*
|
||||
instanciate_gl_renderer(BGLView* view, ulong options, BGLDispatcher* dispatcher)
|
||||
{
|
||||
@@ -30,7 +32,8 @@ instanciate_gl_renderer(BGLView *view, ulong options, BGLDispatcher *dispatcher)
|
||||
" version: %ud\n"
|
||||
" name: %s\n"
|
||||
" chipset: %s\n"
|
||||
" serial#: %s\n", (unsigned int) adi.version, adi.name, adi.chipset, adi.serial_no);
|
||||
" serial#: %s\n",
|
||||
(unsigned int) adi.version, adi.name, adi.chipset, adi.serial_no);
|
||||
flush(stderr);
|
||||
|
||||
// Check the view is attached to a screen driven by a NVidia chip:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku. All rights reserved.
|
||||
* Copyright 2006-2012 Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <Screen.h>
|
||||
#include <GLRenderer.h>
|
||||
|
||||
|
||||
extern "C" _EXPORT BGLRenderer*
|
||||
instanciate_gl_renderer(BGLView* view, ulong options, BGLDispatcher* dispatcher)
|
||||
{
|
||||
@@ -39,7 +40,8 @@ instanciate_gl_renderer(BGLView *view, ulong options, BGLDispatcher *dispatcher)
|
||||
" version: %ud\n"
|
||||
" name: %s\n"
|
||||
" chipset: %s\n"
|
||||
" serial#: %s\n", (unsigned int) adi.version, adi.name, adi.chipset, adi.serial_no);
|
||||
" serial#: %s\n",
|
||||
(unsigned int) adi.version, adi.name, adi.chipset, adi.serial_no);
|
||||
|
||||
// Check the view is attached to a screen driven by a Radeon chip:
|
||||
if (strcasecmp(adi.chipset, "radeon") == 0 ||
|
||||
|
||||
Reference in New Issue
Block a user