mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 11:00:42 +01:00
check for driver_modes == NULL. Don't need driver_modes for EGL driver
This commit is contained in:
parent
a913d9f2f7
commit
4f12aa5a6a
1 changed files with 6 additions and 4 deletions
|
|
@ -938,10 +938,12 @@ __driCreateNewScreen_20050727( __DRInativeDisplay *dpy,
|
|||
|
||||
if ( psp != NULL ) {
|
||||
RADEONDRIPtr dri_priv = (RADEONDRIPtr) psp->pDevPriv;
|
||||
*driver_modes = radeonFillInModes( dri_priv->bpp,
|
||||
(dri_priv->bpp == 16) ? 16 : 24,
|
||||
(dri_priv->bpp == 16) ? 0 : 8,
|
||||
(dri_priv->backOffset != dri_priv->depthOffset) );
|
||||
if (driver_modes) {
|
||||
*driver_modes = radeonFillInModes( dri_priv->bpp,
|
||||
(dri_priv->bpp == 16) ? 16 : 24,
|
||||
(dri_priv->bpp == 16) ? 0 : 8,
|
||||
(dri_priv->backOffset != dri_priv->depthOffset) );
|
||||
}
|
||||
|
||||
/* Calling driInitExtensions here, with a NULL context pointer,
|
||||
* does not actually enable the extensions. It just makes sure
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue