|
|
@ -915,7 +915,7 @@ void SwapScreenBuffer(void) |
|
|
{ |
|
|
{ |
|
|
TRACELOG(LOG_ERROR, "DISPLAY: Failed to get DRM resources"); |
|
|
TRACELOG(LOG_ERROR, "DISPLAY: Failed to get DRM resources"); |
|
|
drmModeRmFB(platform.fd, fb); |
|
|
drmModeRmFB(platform.fd, fb); |
|
|
struct drm_mode_destroy_dumb dreq = {0}; |
|
|
|
|
|
|
|
|
struct drm_mode_destroy_dumb dreq = { 0 }; |
|
|
dreq.handle = creq.handle; |
|
|
dreq.handle = creq.handle; |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
return; |
|
|
return; |
|
|
@ -955,7 +955,7 @@ void SwapScreenBuffer(void) |
|
|
{ |
|
|
{ |
|
|
TRACELOG(LOG_ERROR, "DISPLAY: No compatible CRTC found"); |
|
|
TRACELOG(LOG_ERROR, "DISPLAY: No compatible CRTC found"); |
|
|
drmModeRmFB(platform.fd, fb); |
|
|
drmModeRmFB(platform.fd, fb); |
|
|
struct drm_mode_destroy_dumb dreq = {0}; |
|
|
|
|
|
|
|
|
struct drm_mode_destroy_dumb dreq = { 0 }; |
|
|
dreq.handle = creq.handle; |
|
|
dreq.handle = creq.handle; |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
return; |
|
|
return; |
|
|
@ -971,7 +971,7 @@ void SwapScreenBuffer(void) |
|
|
TRACELOG(LOG_ERROR, "DISPLAY: Mode: %dx%d@%d", mode->hdisplay, mode->vdisplay, mode->vrefresh); |
|
|
TRACELOG(LOG_ERROR, "DISPLAY: Mode: %dx%d@%d", mode->hdisplay, mode->vdisplay, mode->vrefresh); |
|
|
|
|
|
|
|
|
drmModeRmFB(platform.fd, fb); |
|
|
drmModeRmFB(platform.fd, fb); |
|
|
struct drm_mode_destroy_dumb dreq = {0}; |
|
|
|
|
|
|
|
|
struct drm_mode_destroy_dumb dreq = { 0 }; |
|
|
dreq.handle = creq.handle; |
|
|
dreq.handle = creq.handle; |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
return; |
|
|
return; |
|
|
@ -989,7 +989,7 @@ void SwapScreenBuffer(void) |
|
|
// Clean up previous dumb buffer |
|
|
// Clean up previous dumb buffer |
|
|
if (platform.prevDumbHandle) |
|
|
if (platform.prevDumbHandle) |
|
|
{ |
|
|
{ |
|
|
struct drm_mode_destroy_dumb dreq = {0}; |
|
|
|
|
|
|
|
|
struct drm_mode_destroy_dumb dreq = { 0 }; |
|
|
dreq.handle = platform.prevDumbHandle; |
|
|
dreq.handle = platform.prevDumbHandle; |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
drmIoctl(platform.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); |
|
|
} |
|
|
} |
|
|
|