message: If a glBufferData call on replay resizes a buffer down, don't allow it
diff: @@ -553,10 +553,22 @@ bool WrappedOpenGL::Serialise_glNamedBufferDataEXT(SerialiserType &ser, GLuint b
  SERIALISE_CHECK_READ_ERRORS();
  if(IsReplayingAndReading())
  + {
  + // never allow resizing down, even if the application did so. If we encounter that, adjust the
  + // size and upload any data with a subdata call
  + if(bytesize < m_Buffers[GetResourceManager()->GetID(buffer)].size)
  + {
  + GL.glNamedBufferDataEXT(
  + buffer.name, (GLsizeiptr)m_Buffers[GetResourceManager()->GetID(buffer)].size, NULL, usage);
  +
  + GL.glNamedBufferSubDataEXT(buffer.name, 0, bytesize, data);
  + }
  + else
  {
  GL.glNamedBufferDataEXT(buffer.name, (GLsizeiptr)bytesize, data, usage);
  m_Buffers[GetResourceManager()->GetID(buffer)].size = bytesize;
  + }
  AddResourceInitChunk(buffer);
  }
  