mirror of https://github.com/bjornbytes/lovr.git
rm lovrTextureGetId;
This commit is contained in:
parent
55e889824f
commit
fbcee9ac9c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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. };
|
||||
|
|
Loading…
Reference in New Issue