summaryrefslogtreecommitdiffstats
path: root/src/fakerw/fake.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-25 11:26:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-25 11:26:37 +0200
commitbb14d9689fbd28ea2b8e340472e3e593e4b84c1e (patch)
tree8f30747dab46c7ccf3ade06946aab1956664e798 /src/fakerw/fake.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.gz
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.bz2
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.lz
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.xz
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.zst
re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.zip
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r--src/fakerw/fake.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index b86e9214..dca15dd0 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -241,7 +241,7 @@ RwRaster *RwRasterSetFromImage(RwRaster *raster, RwImage *image) { return raster
RwTexture *RwTextureCreate(RwRaster * raster) { return Texture::create(raster); }
RwBool RwTextureDestroy(RwTexture * texture) { texture->destroy(); return true; }
-RwTexture *RwTextureAddRef(RwTexture *texture) { texture->refCount++; return texture; }
+RwTexture *RwTextureAddRef(RwTexture *texture) { texture->addRef(); return texture; }
// TODO
RwBool RwTextureSetMipmapping(RwBool enable) { return true; }
RwBool RwTextureGetMipmapping(void);
@@ -410,11 +410,11 @@ RwBool RwIm3DRenderLine(RwInt32 vert1, RwInt32 vert2) {
RwImVertexIndex indices[2];
indices[0] = vert1;
indices[1] = vert2;
- im3d::RenderIndexed((PrimitiveType)PRIMTYPELINELIST, indices, 2);
+ im3d::RenderIndexedPrimitive((PrimitiveType)PRIMTYPELINELIST, indices, 2);
return true;
}
RwBool RwIm3DRenderTriangle(RwInt32 vert1, RwInt32 vert2, RwInt32 vert3);
-RwBool RwIm3DRenderIndexedPrimitive(RwPrimitiveType primType, RwImVertexIndex *indices, RwInt32 numIndices) { im3d::RenderIndexed((PrimitiveType)primType, indices, numIndices); return true; }
+RwBool RwIm3DRenderIndexedPrimitive(RwPrimitiveType primType, RwImVertexIndex *indices, RwInt32 numIndices) { im3d::RenderIndexedPrimitive((PrimitiveType)primType, indices, numIndices); return true; }
RwBool RwIm3DRenderPrimitive(RwPrimitiveType primType);