mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
3rdParty: update mupen64plus-video-GLideN64
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@
|
||||
[subrepo]
|
||||
remote = git@github.com:/gonetz/GLideN64.git
|
||||
branch = master
|
||||
commit = 42129aadb16e0fb0e9c265ee134dbc7f9c4022e6
|
||||
parent = 2c32dfd552dbfa5c2293b00fa22c4a08dd8c4eaf
|
||||
commit = 9f8fc1e4c59c4cdb37112ef0c100158b25c2c1cb
|
||||
parent = 3c615c84599a0ea8624c2deea4c8ba438ce988d6
|
||||
method = merge
|
||||
cmdver = 0.4.6
|
||||
|
||||
@@ -17,8 +17,9 @@ namespace graphics {
|
||||
struct CachedTexture;
|
||||
struct FrameBuffer;
|
||||
|
||||
#define VERTBUFF_SIZE 256U
|
||||
#define ELEMBUFF_SIZE 1024U
|
||||
constexpr u32 VERTBUFF_SIZE = 256U;
|
||||
constexpr u32 VERTBUFF_MASK = VERTBUFF_SIZE - 1;
|
||||
constexpr u32 ELEMBUFF_SIZE = 1024U;
|
||||
|
||||
constexpr f32 SCREEN_SIZE_DIM = 640.0f;
|
||||
constexpr u32 MIPMAP_TILE_WIDTH = 256u;
|
||||
@@ -136,7 +137,7 @@ public:
|
||||
|
||||
bool isRejected(u32 _v0, u32 _v1, u32 _v2) const;
|
||||
|
||||
SPVertex & getVertex(u32 _v) { return triangles.vertices[_v]; }
|
||||
SPVertex & getVertex(u32 _v) { return triangles.vertices[_v&VERTBUFF_MASK]; }
|
||||
|
||||
SPVertex * getVertexPtr(u32 _v) { return triangles.vertices.data() + _v; }
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <iomanip>
|
||||
#include <fstream>
|
||||
#include <ctime>
|
||||
#include <chrono>
|
||||
|
||||
#ifndef MUPENPLUSAPI // zilmar spec
|
||||
|
||||
|
||||
@@ -1566,6 +1566,11 @@ bool gSPCullVertices( u32 v0, u32 vn )
|
||||
// Aidyn Chronicles - The First Mage seems to pass parameters in reverse order.
|
||||
std::swap(v0, vn);
|
||||
}
|
||||
|
||||
if (vn >= VERTBUFF_SIZE)
|
||||
// Wrong input. DL is wrong, let's cull it.
|
||||
return true;
|
||||
|
||||
u32 clip = 0;
|
||||
GraphicsDrawer & drawer = dwnd().getDrawer();
|
||||
for (u32 i = v0; i <= vn; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user