mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
Rename OpenGLVendor::strict
This commit is contained in:
parent
4527fe9667
commit
c78f48b314
@ -123,7 +123,7 @@ class OpenGLRenderSystem(
|
||||
vendorString.contains("amd") || vendorString.contains("ati") -> ATIOpenGLVendor
|
||||
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!")
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
@ -17,7 +17,7 @@ import org.lwjgl.opengl.ATIMeminfo.GL_VBO_FREE_MEMORY_ATI
|
||||
import org.lwjgl.opengl.GL11.glGetInteger
|
||||
|
||||
object ATIOpenGLVendor : OpenGLVendor {
|
||||
override val strictSpecification: Boolean = false
|
||||
override val strict: Boolean = false
|
||||
override val shaderDefine: String = "__ATI"
|
||||
|
||||
override val availableVRAM: Long
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
@ -14,6 +14,6 @@
|
||||
package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
|
||||
|
||||
object MesaOpenGLVendor : OpenGLVendor {
|
||||
override val strictSpecification: Boolean = true
|
||||
override val strict: Boolean = true
|
||||
override val shaderDefine: String = "__MESA"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
@ -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
|
||||
|
||||
object NvidiaOpenGLVendor : OpenGLVendor {
|
||||
override val strictSpecification: Boolean = false
|
||||
override val strict: Boolean = false
|
||||
override val shaderDefine: String = "__NVIDIA"
|
||||
|
||||
override val availableVRAM: Long
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
@ -16,7 +16,7 @@ package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
|
||||
import de.bixilon.minosoft.gui.rendering.system.base.GPUVendor
|
||||
|
||||
interface OpenGLVendor : GPUVendor {
|
||||
val strictSpecification: Boolean
|
||||
val strict: Boolean
|
||||
|
||||
val usedVRAM: Long
|
||||
get() = -1L
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
@ -14,6 +14,6 @@
|
||||
package de.bixilon.minosoft.gui.rendering.system.opengl.vendor
|
||||
|
||||
object OtherOpenGLVendor : OpenGLVendor {
|
||||
override val strictSpecification: Boolean = true
|
||||
override val strict: Boolean = true
|
||||
override val shaderDefine: String = "__OTHER"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user