]> O.S.I.I.S - jp/vkvg.git/commitdiff
add 1 to scissor test for float rounding
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 29 Jan 2020 03:06:24 +0000 (04:06 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 29 Jan 2020 03:06:24 +0000 (04:06 +0100)
appveyor.yml
src/vkvg_context_internal.c

index f48ab56b3e6f91bf2d5efc13c732e9fca11478fe..6916627c2f4df57d76f4b774027cec300fc3d3a5 100644 (file)
@@ -33,7 +33,7 @@ for:
     build_script:
         - msbuild vkvg.sln /p:Configuration=Debug /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
     after_build:
-        - 7z a vkvg.zip %APPVEYOR_BUILD_FOLDER%\build\*.dll %APPVEYOR_BUILD_FOLDER%\build\*.exe %APPVEYOR_BUILD_FOLDER%\build\*.lib
+        - 7z a vkvg.zip %APPVEYOR_BUILD_FOLDER%/build/*.dll %APPVEYOR_BUILD_FOLDER%/build/*.exe %APPVEYOR_BUILD_FOLDER%/build/*.lib
 
   -
     matrix:
@@ -52,7 +52,7 @@ for:
     build_script:
         - make
     after_build:
-        - 7z a vkvg.zip %APPVEYOR_BUILD_FOLDER%\build\*.so* %APPVEYOR_BUILD_FOLDER%\build\test_*
+        - 7z a vkvg.zip %APPVEYOR_BUILD_FOLDER%/build/*.so* %APPVEYOR_BUILD_FOLDER%/build/test_*
     
 
 
index f5c78e0c96d11796624a283d97f562851e389a35..e4e75c1e170fa61e6faa6fdc56d721566ecb322f 100644 (file)
@@ -671,7 +671,7 @@ void _init_descriptor_sets (VkvgContext ctx){
     descriptorSetAllocateInfo.pSetLayouts = &dev->dslGrad;
     VK_CHECK_RESULT(vkAllocateDescriptorSets(dev->vkDev, &descriptorSetAllocateInfo, &ctx->dsGrad));
 }
-
+//populate vertice buff for stroke
 float _build_vb_step (vkvg_context* ctx, Vertex v, float hw, vec2 pL, vec2 p0, vec2 pR, bool isCurve){
     //if two of the three points are equal, normal is null
     vec2 v0n = vec2_line_norm(pL, p0);
@@ -1117,7 +1117,7 @@ void _draw_full_screen_quad (VkvgContext ctx, bool useScissor) {
     if (ctx->xMin < 0 || ctx->yMin < 0)
         useScissor = false;
     if (useScissor && ctx->xMin < FLT_MAX) {
-        VkRect2D r = {{ctx->xMin, ctx->yMin}, {ctx->xMax - ctx->xMin, ctx->yMax - ctx->yMin}};
+        VkRect2D r = {{ctx->xMin, ctx->yMin}, {ctx->xMax - ctx->xMin + 1, ctx->yMax - ctx->yMin + 1}};
         CmdSetScissor(ctx->cmd, 0, 1, &r);
     }
     CmdPushConstants(ctx->cmd, ctx->pSurf->dev->pipelineLayout,