From 8706f0ef6a414fddaf6a2494383f7da7820b7bec Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sun, 29 Jan 2023 15:58:31 -0400 Subject: [PATCH] Rename Texture:isRenderTarget to Texture:isCanvas. --- src/modules/graphics/wrap_Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/wrap_Texture.cpp b/src/modules/graphics/wrap_Texture.cpp index 3e09da10e..00f6058af 100644 --- a/src/modules/graphics/wrap_Texture.cpp +++ b/src/modules/graphics/wrap_Texture.cpp @@ -279,7 +279,7 @@ int w_Texture_getFormat(lua_State *L) return 1; } -int w_Texture_isRenderTarget(lua_State *L) +int w_Texture_isCanvas(lua_State *L) { Texture *t = luax_checktexture(L, 1); luax_pushboolean(L, t->isRenderTarget()); @@ -497,7 +497,7 @@ const luaL_Reg w_Texture_functions[] = { "setWrap", w_Texture_setWrap }, { "getWrap", w_Texture_getWrap }, { "getFormat", w_Texture_getFormat }, - { "isRenderTarget", w_Texture_isRenderTarget }, + { "isCanvas", w_Texture_isCanvas }, { "isComputeWritable", w_Texture_isComputeWritable }, { "isReadable", w_Texture_isReadable }, { "getMipmapMode", w_Texture_getMipmapMode },