From 2d4dfe65381755cd4e25a0784ec1faa0c6fc2e1a Mon Sep 17 00:00:00 2001 From: Richard Geslot Date: Thu, 3 Aug 2023 11:09:04 +0200 Subject: [PATCH] Python - fixes --- python/bind_rpr.cpp | 6 +++--- python/test/test_script_gltf.py | 2 +- python/test/test_script_rpr.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/bind_rpr.cpp b/python/bind_rpr.cpp index 05df8107..1b7646e1 100644 --- a/python/bind_rpr.cpp +++ b/python/bind_rpr.cpp @@ -1178,9 +1178,9 @@ enum class Curve : rpr_curve_parameter { NB_MODULE(rpr, m) { m.attr("VERSION_MAJOR") = 3 ; m.attr("VERSION_MINOR") = 1 ; - m.attr("VERSION_REVISION") = 2 ; - m.attr("VERSION_BUILD") = 0xd1cb11d8 ; - m.attr("VERSION_MAJOR_MINOR_REVISION") = 0x00300102 ; + m.attr("VERSION_REVISION") = 3 ; + m.attr("VERSION_BUILD") = 0xf82cb9d0 ; + m.attr("VERSION_MAJOR_MINOR_REVISION") = 0x00300103 ; m.attr("API_VERSION") = RPR_VERSION_MAJOR_MINOR_REVISION ; m.attr("API_VERSION_MINOR") = RPR_VERSION_BUILD ; nb::enum_(m, "Status") diff --git a/python/test/test_script_gltf.py b/python/test/test_script_gltf.py index 1659e8cb..adc955ab 100644 --- a/python/test/test_script_gltf.py +++ b/python/test/test_script_gltf.py @@ -76,7 +76,7 @@ def RPRCHECK(retCode): newCtx = rpr.Context() ctxInfo1 = rpr.PyMalloc("../../hipbin") pluginLists__myarray = np.array([plugin_id], dtype=np.int32) -RPRCHECK( rpr.CreateContext(0x00300102 , pluginLists__myarray , 1 , flagsCtx , [ rpr.Int64ToPvoid(rpr.ContextInfo.PRECOMPILED_BINARY_PATH) , ctxInfo1.GetMem(0) , rpr.Int64ToPvoid(0) ] , "" , newCtx ) ) +RPRCHECK( rpr.CreateContext(rpr.VERSION_MAJOR_MINOR_REVISION , pluginLists__myarray , 1 , flagsCtx , [ rpr.Int64ToPvoid(rpr.ContextInfo.PRECOMPILED_BINARY_PATH) , ctxInfo1.GetMem(0) , rpr.Int64ToPvoid(0) ] , "" , newCtx ) ) ctxInfo1.Free(); ctxInfo1=0; RPRCHECK( rpr.ContextSetActivePlugin(newCtx, plugin_id) ) print("RPR context created."); diff --git a/python/test/test_script_rpr.py b/python/test/test_script_rpr.py index 44369561..0b9cb537 100644 --- a/python/test/test_script_rpr.py +++ b/python/test/test_script_rpr.py @@ -75,7 +75,7 @@ def RPRCHECK(retCode): newCtx = rpr.Context() ctxInfo1 = rpr.PyMalloc("../../hipbin") pluginLists__myarray = np.array([plugin_id], dtype=np.int32) -RPRCHECK( rpr.CreateContext(0x00300102 , pluginLists__myarray , 1 , flagsCtx , [ rpr.Int64ToPvoid(rpr.ContextInfo.PRECOMPILED_BINARY_PATH) , ctxInfo1.GetMem(0) , rpr.Int64ToPvoid(0) ] , "" , newCtx ) ) +RPRCHECK( rpr.CreateContext(rpr.VERSION_MAJOR_MINOR_REVISION , pluginLists__myarray , 1 , flagsCtx , [ rpr.Int64ToPvoid(rpr.ContextInfo.PRECOMPILED_BINARY_PATH) , ctxInfo1.GetMem(0) , rpr.Int64ToPvoid(0) ] , "" , newCtx ) ) ctxInfo1.Free(); ctxInfo1=0; RPRCHECK( rpr.ContextSetActivePlugin(newCtx, plugin_id) ) print("RPR context created.");