Browse Source

Set default priority on PRIME detection vendor struct.

Wilson E. Alvarez 3 years ago
parent
commit
1b8a9d56b3
1 changed files with 1 additions and 1 deletions
  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[] = {