소스 검색

RPI4: Improve DRM card check #1723

pull/1733/head
Ray 4 년 전
부모
커밋
03815ec4fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c 파일 보기

@ -3810,7 +3810,7 @@ static bool InitGraphicsDevice(int width, int height)
#else
TRACELOG(LOG_INFO, "DISPLAY: No graphic card set, trying card1");
CORE.Window.fd = open("/dev/dri/card1", O_RDWR); // VideoCore VI (Raspberry Pi 4)
if (-1 == CORE.Window.fd)
if (p">(-1 == CORE.Window.fd) || (drmModeGetResources(CORE.Window.fd) == NULL))
{
TRACELOG(LOG_INFO, "DISPLAY: Failed to open graphic card1, trying card0");
CORE.Window.fd = open("/dev/dri/card0", O_RDWR); // VideoCore IV (Raspberry Pi 1-3)

불러오는 중...
취소
저장