renderGL1: more texture fixes

This commit is contained in:
tildearrow 2024-04-07 02:58:57 -05:00
parent 20e7c4633d
commit a793f286c5
8 changed files with 38 additions and 11 deletions

View file

@ -1589,7 +1589,7 @@ void FurnaceGUI::drawSampleEdit() {
updateSampleTex=false;
}
ImGui::ImageButton(rend->getTextureID(sampleTex),avail,ImVec2(0,0),ImVec2(1,1),0);
ImGui::ImageButton(rend->getTextureID(sampleTex),avail,ImVec2(0,0),ImVec2(rend->getTextureU(sampleTex),rend->getTextureV(sampleTex)),0);
ImVec2 rectMin=ImGui::GetItemRectMin();
ImVec2 rectMax=ImGui::GetItemRectMax();