@@ -218,7 +218,7 @@ default_texture3d(BatchedRendererServices* bsr, ustring filename,
218218 Wide<const Vec3> wdPdz, BatchedTextureOutputs& outputs)
219219{
220220 Mask status (false );
221- ASSERT (nullptr != bsg);
221+ OSL_ASSERT (nullptr != bsg);
222222 ShadingContext* context = bsg->uniform .context ;
223223 if (!texture_thread_info)
224224 texture_thread_info = context->texture_thread_info ();
@@ -233,7 +233,7 @@ default_texture3d(BatchedRendererServices* bsr, ustring filename,
233233 MaskedData alphaRef = outputs.alpha ();
234234 bool has_derivs = resultRef.has_derivs () | alphaRef.has_derivs ();
235235
236- ASSERT (resultRef.valid ());
236+ OSL_ASSERT (resultRef.valid ());
237237
238238 // Convert our BatchedTextureOptions to a single TextureOpt
239239 // and submit them 1 at a time through existing non-batched interface
@@ -403,7 +403,7 @@ default_environment(BatchedRendererServices* bsr, ustring filename,
403403 BatchedTextureOutputs& outputs)
404404{
405405 Mask status (false );
406- ASSERT (nullptr != bsg);
406+ OSL_ASSERT (nullptr != bsg);
407407 ShadingContext* context = bsg->uniform .context ;
408408 if (!texture_thread_info)
409409 texture_thread_info = context->texture_thread_info ();
@@ -417,7 +417,7 @@ default_environment(BatchedRendererServices* bsr, ustring filename,
417417 MaskedData resultRef = outputs.result ();
418418 MaskedData alphaRef = outputs.alpha ();
419419
420- ASSERT (resultRef.valid ());
420+ OSL_ASSERT (resultRef.valid ());
421421
422422 // Convert our BatchedTextureOptions to a single TextureOpt
423423 // and submit them 1 at a time through existing non-batched interface
@@ -567,7 +567,7 @@ transformWideTextureGradients(BatchedTextureOutputs& outputs,
567567 }
568568 }
569569 } else {
570- // keep assert out of inlined code
570+ // keep OSL_assert out of inlined code
571571 OSL_DASSERT (Masked<Color3>::is (resultRef));
572572 OSL_FORCEINLINE_BLOCK
573573 {
@@ -642,7 +642,7 @@ transformWideTextureGradientsTexture3d(BatchedTextureOutputs& outputs,
642642 }
643643 }
644644 } else {
645- // keep assert out of inlined code
645+ // keep OSL_assert out of inlined code
646646 OSL_DASSERT (Masked<Color3>::is (resultRef));
647647 OSL_FORCEINLINE_BLOCK
648648 {
@@ -762,7 +762,7 @@ __OSL_MASKED_OP(texture3d)(void* bsg_, void* name, void* handle,
762762 int alphaHasDerivs, void * errormessage, int mask_)
763763{
764764 Mask mask (mask_);
765- ASSERT (!mask.all_off ());
765+ OSL_ASSERT (!mask.all_off ());
766766
767767 auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
768768 auto & opt = *reinterpret_cast <const BatchedTextureOptions*>(opt_);
@@ -815,7 +815,7 @@ __OSL_MASKED_OP(environment)(void* bsg_, void* name, void* handle,
815815 int alphaHasDerivs, void * errormessage, int mask_)
816816{
817817 Mask mask (mask_);
818- ASSERT (!mask.all_off ());
818+ OSL_ASSERT (!mask.all_off ());
819819
820820 auto * bsg = reinterpret_cast <BatchedShaderGlobals*>(bsg_);
821821 auto & opt = *reinterpret_cast <const BatchedTextureOptions*>(opt_);
0 commit comments