R_Init2
()
| 1094 | * R_Init2 |
| 1095 | */ |
| 1096 | public boolean R_Init2() { |
| 1097 | VID.MenuInit(); |
| 1098 | |
| 1099 | /* |
| 1100 | ** get our various GL strings |
| 1101 | */ |
| 1102 | gl_config.vendor_string = gl.glGetString(GL_VENDOR); |
| 1103 | Com.Printf(Defines.PRINT_ALL, "GL_VENDOR: " + gl_config.vendor_string + '\n'); |
| 1104 | gl_config.renderer_string = gl.glGetString(GL_RENDERER); |
| 1105 | Com.Printf(Defines.PRINT_ALL, "GL_RENDERER: " + gl_config.renderer_string + '\n'); |
| 1106 | gl_config.version_string = gl.glGetString(GL_VERSION); |
| 1107 | Com.Printf(Defines.PRINT_ALL, "GL_VERSION: " + gl_config.version_string + '\n'); |
| 1108 | gl_config.extensions_string = gl.glGetString(GL_EXTENSIONS); |
| 1109 | Com.Printf(Defines.PRINT_ALL, "GL_EXTENSIONS: " + gl_config.extensions_string + '\n'); |
| 1110 | |
| 1111 | gl_config.parseOpenGLVersion(); |
| 1112 | |
| 1113 | String renderer_buffer = gl_config.renderer_string.toLowerCase(); |
| 1114 | String vendor_buffer = gl_config.vendor_string.toLowerCase(); |
| 1115 | |
| 1116 | if (renderer_buffer.indexOf("voodoo") >= 0) { |
| 1117 | if (renderer_buffer.indexOf("rush") < 0) |
| 1118 | gl_config.renderer = GL_RENDERER_VOODOO; |
| 1119 | else |
| 1120 | gl_config.renderer = GL_RENDERER_VOODOO_RUSH; |
| 1121 | } |
| 1122 | else if (vendor_buffer.indexOf("sgi") >= 0) |
| 1123 | gl_config.renderer = GL_RENDERER_SGI; |
| 1124 | else if (renderer_buffer.indexOf("permedia") >= 0) |
| 1125 | gl_config.renderer = GL_RENDERER_PERMEDIA2; |
| 1126 | else if (renderer_buffer.indexOf("glint") >= 0) |
| 1127 | gl_config.renderer = GL_RENDERER_GLINT_MX; |
| 1128 | else if (renderer_buffer.indexOf("glzicd") >= 0) |
| 1129 | gl_config.renderer = GL_RENDERER_REALIZM; |
| 1130 | else if (renderer_buffer.indexOf("gdi") >= 0) |
| 1131 | gl_config.renderer = GL_RENDERER_MCD; |
| 1132 | else if (renderer_buffer.indexOf("pcx2") >= 0) |
| 1133 | gl_config.renderer = GL_RENDERER_PCX2; |
| 1134 | else if (renderer_buffer.indexOf("verite") >= 0) |
| 1135 | gl_config.renderer = GL_RENDERER_RENDITION; |
| 1136 | else |
| 1137 | gl_config.renderer = GL_RENDERER_OTHER; |
| 1138 | |
| 1139 | String monolightmap = gl_monolightmap.string.toUpperCase(); |
| 1140 | if (monolightmap.length() < 2 || monolightmap.charAt(1) != 'F') { |
| 1141 | if (gl_config.renderer == GL_RENDERER_PERMEDIA2) { |
| 1142 | Cvar.getInstance().Set("gl_monolightmap", "A"); |
| 1143 | Com.Printf(Defines.PRINT_ALL, "...using gl_monolightmap 'a'\n"); |
| 1144 | } |
| 1145 | else if ((gl_config.renderer & GL_RENDERER_POWERVR) != 0) { |
| 1146 | Cvar.getInstance().Set("gl_monolightmap", "0"); |
| 1147 | } |
| 1148 | else { |
| 1149 | Cvar.getInstance().Set("gl_monolightmap", "0"); |
| 1150 | } |
| 1151 | } |
| 1152 | |
| 1153 | // power vr can't have anything stay in the framebuffer, so |
nothing calls this directly
no test coverage detected