Skip to content

Commit

Permalink
Python - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardGe committed Aug 3, 2023
1 parent 4260b13 commit 2d4dfe6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions python/bind_rpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_<Status>(m, "Status")
Expand Down
2 changes: 1 addition & 1 deletion python/test/test_script_gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion python/test/test_script_rpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 2d4dfe6

Please sign in to comment.