Skip to content

Commit 2d4dfe6

Browse files
committed
Python - fixes
1 parent 4260b13 commit 2d4dfe6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

python/bind_rpr.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1178,9 +1178,9 @@ enum class Curve : rpr_curve_parameter {
11781178
NB_MODULE(rpr, m) {
11791179
m.attr("VERSION_MAJOR") = 3 ;
11801180
m.attr("VERSION_MINOR") = 1 ;
1181-
m.attr("VERSION_REVISION") = 2 ;
1182-
m.attr("VERSION_BUILD") = 0xd1cb11d8 ;
1183-
m.attr("VERSION_MAJOR_MINOR_REVISION") = 0x00300102 ;
1181+
m.attr("VERSION_REVISION") = 3 ;
1182+
m.attr("VERSION_BUILD") = 0xf82cb9d0 ;
1183+
m.attr("VERSION_MAJOR_MINOR_REVISION") = 0x00300103 ;
11841184
m.attr("API_VERSION") = RPR_VERSION_MAJOR_MINOR_REVISION ;
11851185
m.attr("API_VERSION_MINOR") = RPR_VERSION_BUILD ;
11861186
nb::enum_<Status>(m, "Status")

python/test/test_script_gltf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def RPRCHECK(retCode):
7676
newCtx = rpr.Context()
7777
ctxInfo1 = rpr.PyMalloc("../../hipbin")
7878
pluginLists__myarray = np.array([plugin_id], dtype=np.int32)
79-
RPRCHECK( rpr.CreateContext(0x00300102 , pluginLists__myarray , 1 , flagsCtx , [ rpr.Int64ToPvoid(rpr.ContextInfo.PRECOMPILED_BINARY_PATH) , ctxInfo1.GetMem(0) , rpr.Int64ToPvoid(0) ] , "" , newCtx ) )
79+
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 ) )
8080
ctxInfo1.Free(); ctxInfo1=0;
8181
RPRCHECK( rpr.ContextSetActivePlugin(newCtx, plugin_id) )
8282
print("RPR context created.");

python/test/test_script_rpr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def RPRCHECK(retCode):
7575
newCtx = rpr.Context()
7676
ctxInfo1 = rpr.PyMalloc("../../hipbin")
7777
pluginLists__myarray = np.array([plugin_id], dtype=np.int32)
78-
RPRCHECK( rpr.CreateContext(0x00300102 , pluginLists__myarray , 1 , flagsCtx , [ rpr.Int64ToPvoid(rpr.ContextInfo.PRECOMPILED_BINARY_PATH) , ctxInfo1.GetMem(0) , rpr.Int64ToPvoid(0) ] , "" , newCtx ) )
78+
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 ) )
7979
ctxInfo1.Free(); ctxInfo1=0;
8080
RPRCHECK( rpr.ContextSetActivePlugin(newCtx, plugin_id) )
8181
print("RPR context created.");

0 commit comments

Comments
 (0)