summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a37d93)
raw | patch | inline | side by side (parent: 7a37d93)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 11 Sep 2017 16:41:16 +0000 (19:41 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 11 Sep 2017 16:42:08 +0000 (19:42 +0300) |
src/engine/e_texture.pas | patch | blob | history |
index c0e6f990dc88ece1edfa033b5e44f1e6893bafdb..62ace83b459098298fa725a7ba72a71c34070314 100644 (file)
--- a/src/engine/e_texture.pas
+++ b/src/engine/e_texture.pas
glBindTexture(GL_TEXTURE_2D, 0);
+ // so driver will really upload the texture (this is *sometimes* required for buggy videodrivers)
+ glFlush();
+ glFinish();
+
Result := true;
end;
imageSize := Width*Height*4;
GetMem(image, imageSize);
try
- // it's slow, but i don't care for now
+ // it is slow, but i don't care for now
ii := image;
for y := height-1 downto 0 do
begin
imageSize := img.width*img.height*4;
GetMem(image, imageSize);
try
- // it's slow, but i don't care for now
+ // it is slow, but i don't care for now
ii := image;
for y := fY+fHeight-1 downto fY do
begin