Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119024

Initialization of VertexBuffer is done incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • fx2.1
    • javafx


      Initialization of VertexBuffer is done by call from BaseContext form its constructor :

      public abstract class BaseContext {
          private final VertexBuffer vertexBuffer;
          BaseContext() {
             this.vertexBuffer = createVertexBuffer();
          }

      while createVertexBuffer is a vistual function wich is overriden and directs to un-initialized child class D3DContext.
      As a result we have an un-initialized D3DContext in the D3DVertexBuffer(D3DContext context...) constructor.
      This needs to be re-done in a proper way.
      We need to remove virtual calls from constructors.

            kprazdnikwse Kirill.Prazdnikov (Inactive)
            kprazdnikwse Kirill.Prazdnikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: