diff --git a/src/graphics/opengl.c b/src/graphics/opengl.c index be0d903d..00a44b7e 100644 --- a/src/graphics/opengl.c +++ b/src/graphics/opengl.c @@ -1081,10 +1081,6 @@ void lovrTextureReplacePixels(Texture* texture, TextureData* textureData, int x, } } -GLuint lovrTextureGetId(Texture* texture) { - return texture->id; -} - int lovrTextureGetWidth(Texture* texture, int mipmap) { return MAX(texture->width >> mipmap, 1); } diff --git a/src/graphics/texture.h b/src/graphics/texture.h index f2dff2fb..e8c4b747 100644 --- a/src/graphics/texture.h +++ b/src/graphics/texture.h @@ -59,7 +59,6 @@ Texture* lovrTextureInitFromHandle(Texture* texture, uint32_t handle, TextureTyp void lovrTextureDestroy(void* ref); void lovrTextureAllocate(Texture* texture, int width, int height, int depth, TextureFormat format); void lovrTextureReplacePixels(Texture* texture, TextureData* data, int x, int y, int slice, int mipmap); -uint32_t lovrTextureGetId(Texture* texture); int lovrTextureGetWidth(Texture* texture, int mipmap); int lovrTextureGetHeight(Texture* texture, int mipmap); int lovrTextureGetDepth(Texture* texture, int mipmap); diff --git a/src/headset/openvr.c b/src/headset/openvr.c index 6bd36c6c..3055a0a1 100644 --- a/src/headset/openvr.c +++ b/src/headset/openvr.c @@ -520,7 +520,7 @@ static void openvrRenderTo(void (*callback)(void*), void* userdata) { // Submit const Attachment* attachments = lovrCanvasGetAttachments(state.canvas, NULL); - ptrdiff_t id = lovrTextureGetId(attachments[0].texture); + ptrdiff_t id = attachments[0].texture->id; EColorSpace colorSpace = lovrGraphicsIsGammaCorrect() ? EColorSpace_ColorSpace_Linear : EColorSpace_ColorSpace_Gamma; Texture_t eyeTexture = { (void*) id, ETextureType_TextureType_OpenGL, colorSpace }; VRTextureBounds_t left = { 0, 0, .5, 1. };