Skip to content

Commit

Permalink
AMD uses 2 vendor strings :(
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Jul 31, 2023
1 parent 060ba92 commit a104f13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ loader_version=0.14.21
# Mod Properties
maven_name = ImmediatelyFast
maven_group = net.raphimc
maven_version = 1.1.23+1.20.1
maven_version = 1.1.24+1.20.1
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public void onInitializeClient() {
final String glVersion = GL11C.glGetString(GL11C.GL_VERSION);
LOGGER.info("Initializing IF on " + gpuModel + " (" + gpuVendor + ") with OpenGL " + glVersion);

final boolean isNvidia = gpuVendor != null && gpuVendor.equalsIgnoreCase("NVIDIA Corporation");
final boolean isAmd = gpuVendor != null && gpuVendor.equalsIgnoreCase("ATI Technologies");
final boolean isIntel = gpuVendor != null && gpuVendor.equalsIgnoreCase("INTEL");
final boolean isNvidia = gpuVendor != null && gpuVendor.toLowerCase().startsWith("nvidia corporation");
final boolean isAmd = gpuVendor != null && gpuVendor.toLowerCase().startsWith("ati technologies");
final boolean isIntel = gpuVendor != null && gpuVendor.toLowerCase().startsWith("intel");

if (ImmediatelyFast.config.fast_buffer_upload) {
if (cap.GL_ARB_direct_state_access && cap.GL_ARB_buffer_storage && cap.glMemoryBarrier != 0) {
Expand Down

0 comments on commit a104f13

Please sign in to comment.