deal properly with resize/retina in eglPlugin/eglRendererVisualShapeConverter

This commit is contained in:
erwincoumans
2019-02-13 14:43:39 -08:00
parent b410e44137
commit a38093ad61
2 changed files with 7 additions and 2 deletions

View File

@@ -1839,9 +1839,12 @@ bool PhysXServerCommandProcessor::processForwardDynamicsCommand(const struct Sha
float* depthBuffer = 0;
int* segmentationMaskBuffer = 0;
int startPixelIndex = 0;
int width = 1024;
int height = 768;
m_data->m_pluginManager.getRenderInterface()->getWidthAndHeight(width, height);
int numPixelsCopied = 0;
m_data->m_pluginManager.getRenderInterface()->copyCameraImageData(pixelRGBA, numRequestedPixels,
depthBuffer, numRequestedPixels,