Rename OpenGLVendor::strict

This commit is contained in:
Moritz Zwerger 2023-11-27 23:47:23 +01:00
parent 4527fe9667
commit c78f48b314
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
6 changed files with 11 additions and 11 deletions

View File

@ -123,7 +123,7 @@ class OpenGLRenderSystem(
vendorString.contains("amd") || vendorString.contains("ati") -> ATIOpenGLVendor vendorString.contains("amd") || vendorString.contains("ati") -> ATIOpenGLVendor
else -> OtherOpenGLVendor else -> OtherOpenGLVendor
} }
if (context.preferQuads && vendor.strictSpecification) { if (context.preferQuads && vendor.strict) {
throw IllegalStateException("Your GPU driver strictly follows the open gl specification. The setting `prefer_quads` is not working!") throw IllegalStateException("Your GPU driver strictly follows the open gl specification. The setting `prefer_quads` is not working!")
} }

View File

@ -1,6 +1,6 @@
/* /*
* Minosoft * Minosoft
* Copyright (C) 2021 Moritz Zwerger * Copyright (C) 2020-2023 Moritz Zwerger
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* *
@ -17,7 +17,7 @@ import org.lwjgl.opengl.ATIMeminfo.GL_VBO_FREE_MEMORY_ATI
import org.lwjgl.opengl.GL11.glGetInteger import org.lwjgl.opengl.GL11.glGetInteger
object ATIOpenGLVendor : OpenGLVendor { object ATIOpenGLVendor : OpenGLVendor {
override val strictSpecification: Boolean = false override val strict: Boolean = false
override val shaderDefine: String = "__ATI" override val shaderDefine: String = "__ATI"
override val availableVRAM: Long override val availableVRAM: Long

View File

@ -1,6 +1,6 @@
/* /*
* Minosoft * Minosoft
* Copyright (C) 2021 Moritz Zwerger * Copyright (C) 2020-2023 Moritz Zwerger
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* *
@ -14,6 +14,6 @@
package de.bixilon.minosoft.gui.rendering.system.opengl.vendor package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
object MesaOpenGLVendor : OpenGLVendor { object MesaOpenGLVendor : OpenGLVendor {
override val strictSpecification: Boolean = true override val strict: Boolean = true
override val shaderDefine: String = "__MESA" override val shaderDefine: String = "__MESA"
} }

View File

@ -1,6 +1,6 @@
/* /*
* Minosoft * Minosoft
* Copyright (C) 2021 Moritz Zwerger * Copyright (C) 2020-2023 Moritz Zwerger
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* *
@ -18,7 +18,7 @@ import org.lwjgl.opengl.NVXGPUMemoryInfo.GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VI
import org.lwjgl.opengl.NVXGPUMemoryInfo.GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX import org.lwjgl.opengl.NVXGPUMemoryInfo.GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX
object NvidiaOpenGLVendor : OpenGLVendor { object NvidiaOpenGLVendor : OpenGLVendor {
override val strictSpecification: Boolean = false override val strict: Boolean = false
override val shaderDefine: String = "__NVIDIA" override val shaderDefine: String = "__NVIDIA"
override val availableVRAM: Long override val availableVRAM: Long

View File

@ -1,6 +1,6 @@
/* /*
* Minosoft * Minosoft
* Copyright (C) 2021 Moritz Zwerger * Copyright (C) 2020-2023 Moritz Zwerger
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* *
@ -16,7 +16,7 @@ package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
import de.bixilon.minosoft.gui.rendering.system.base.GPUVendor import de.bixilon.minosoft.gui.rendering.system.base.GPUVendor
interface OpenGLVendor : GPUVendor { interface OpenGLVendor : GPUVendor {
val strictSpecification: Boolean val strict: Boolean
val usedVRAM: Long val usedVRAM: Long
get() = -1L get() = -1L

View File

@ -1,6 +1,6 @@
/* /*
* Minosoft * Minosoft
* Copyright (C) 2021 Moritz Zwerger * Copyright (C) 2020-2023 Moritz Zwerger
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* *
@ -14,6 +14,6 @@
package de.bixilon.minosoft.gui.rendering.system.opengl.vendor package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
object OtherOpenGLVendor : OpenGLVendor { object OtherOpenGLVendor : OpenGLVendor {
override val strictSpecification: Boolean = true override val strict: Boolean = true
override val shaderDefine: String = "__OTHER" override val shaderDefine: String = "__OTHER"
} }