Skip to content

Commit 403ae0d

Browse files
committed
Fix warning
1 parent 90bf414 commit 403ae0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/ps2gl/texture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class CMMTexture : public GS::CTexture {
110110
~CMMTexture();
111111

112112
void SetImage(const GS::CMemArea& area);
113-
void SetImage(uint128_t* imagePtr, uint32_t w, uint32_t h, GS::tPSM psm);
113+
void SetImage(uint128_t* imagePtr, uint32_t w, uint32_t h, GS::tPSM psm, uint32_t* clutPtr = NULL);
114114

115115
void SetClut(const CMMClut& clut)
116116
{

src/texture.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,15 @@ CMMTexture::~CMMTexture()
379379
/**
380380
* Use the given image in main ram as the texture.
381381
*/
382-
void CMMTexture::SetImage(uint128_t* imagePtr, uint32_t w, uint32_t h, GS::tPSM psm)
382+
void CMMTexture::SetImage(uint128_t* imagePtr, uint32_t w, uint32_t h, GS::tPSM psm, uint32_t* clutPtr)
383383
{
384384
if (pImageMem) {
385385
// we are being re-initialized
386386
delete pImageMem;
387387
CTexture::Reset();
388388
}
389389

390-
CTexture::SetImage(imagePtr, w, h, psm, NULL);
390+
CTexture::SetImage(imagePtr, w, h, psm, clutPtr);
391391

392392
// create a memarea for the image
393393
uint32_t bufWidth = gsrTex0.tb_width * 64;

0 commit comments

Comments
 (0)