Skip to content

Commit

Permalink
GFX3D: Change POLYLIST_SIZE to 16384 to ensure proper memory alignmen…
Browse files Browse the repository at this point in the history
…t with buffers based on CLIPPED_POLYLIST_SIZE and VERTLIST_SIZE.
  • Loading branch information
rogerman committed Jul 6, 2024
1 parent c962c55 commit 09090e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desmume/src/gfx3d.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 2006 yopyop
Copyright (C) 2008-2023 DeSmuME team
Copyright (C) 2008-2024 DeSmuME team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -561,7 +561,7 @@ bool GFX3D_IsPolyWireframe(const POLY &p);
bool GFX3D_IsPolyOpaque(const POLY &p);
bool GFX3D_IsPolyTranslucent(const POLY &p);

#define POLYLIST_SIZE 16383
#define POLYLIST_SIZE 16384
#define CLIPPED_POLYLIST_SIZE (POLYLIST_SIZE * 2)
#define VERTLIST_SIZE (POLYLIST_SIZE * 4)

Expand Down

0 comments on commit 09090e9

Please sign in to comment.