소스 검색

Set default priority on PRIME detection vendor struct.

Wilson E. Alvarez 3 년 전
부모
커밋
1b8a9d56b3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/x11/detect_prime.cpp

+ 1 - 1
platform/x11/detect_prime.cpp

@@ -56,7 +56,7 @@ typedef GLXContext (*GLXCREATECONTEXTATTRIBSARBPROC)(Display *, GLXFBConfig, GLX
 
 struct vendor {
 	const char *glxvendor;
-	int priority;
+	int priority = 0;
 };
 
 vendor vendormap[] = {