summaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-05-11 09:33:22 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-05-11 09:33:22 +0200
commit315236ba74c920f29590aeb6a773bab6240e10f0 (patch)
treea8f492f40cb7344d4a62bc4670937146a7c752ec /src
parentef4c7a8b7b31a20fc095565b323b27238fe12c36 (diff)
add some testsFTsubPixel
Diffstat (limited to 'src')
-rw-r--r--src/vkvg_device.c2
-rw-r--r--src/vkvg_fonts.c2
-rw-r--r--src/vkvg_fonts.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/vkvg_device.c b/src/vkvg_device.c
index 8d8a325..05b299f 100644
--- a/src/vkvg_device.c
+++ b/src/vkvg_device.c
@@ -92,7 +92,7 @@ void vkvg_device_destroy (VkvgDevice dev)
//vkDestroyPipelineCache (dev->vkDev, dev->pipelineCache, NULL);
vkDestroyRenderPass (dev->vkDev, dev->renderPass, NULL);
- vkWaitForFences (dev->vkDev, 1, &dev->fence, VK_TRUE, UINT64_MAX);
+ //vkWaitForFences (dev->vkDev, 1, &dev->fence, VK_TRUE, UINT64_MAX);
vkDestroyFence (dev->vkDev, dev->fence,NULL);
vkFreeCommandBuffers (dev->vkDev, dev->cmdPool, 1, &dev->cmd);
diff --git a/src/vkvg_fonts.c b/src/vkvg_fonts.c
index bc98068..c9e77c6 100644
--- a/src/vkvg_fonts.c
+++ b/src/vkvg_fonts.c
@@ -36,7 +36,7 @@ void _init_fonts_cache (VkvgDevice dev){
assert(!FT_Init_FreeType(&cache->library));
- FT_Library_SetLcdFilter (cache->library, FT_RENDER_MODE_LCD);
+ FT_Library_SetLcdFilter (cache->library, FT_LCD_FILTER_DEFAULT);
cache->cacheTexLength = FONT_CACHE_INIT_LAYERS;
cache->cacheTex = vkh_tex2d_array_create (dev, VK_FORMAT_R8_UNORM, FONT_PAGE_SIZE, FONT_PAGE_SIZE,
diff --git a/src/vkvg_fonts.h b/src/vkvg_fonts.h
index e132bab..1fa9041 100644
--- a/src/vkvg_fonts.h
+++ b/src/vkvg_fonts.h
@@ -24,6 +24,7 @@
#include <ft2build.h>
#include FT_FREETYPE_H
+#include <freetype/ftlcdfil.h>
#include <hb.h>
#include <hb-ft.h>